Commit ba1c5b7
committed
Pass resource and entry types in SentinelTemplate
Allow configuring Sentinel resource type and entry traffic type when creating entries. Adds resourceType (int) and trafficType (EntryType) fields with constructors and defaults (COMMON, IN), updates the entry(...) call to pass both type parameters, and includes necessary imports. This enables creating Sentinel entries with explicit resource/traffic types instead of using the single-argument entry(...) overload.1 parent da7ac3b commit ba1c5b7
1 file changed
Lines changed: 21 additions & 1 deletion
File tree
- microsphere-sentinel-commons/src/main/java/io/microsphere/sentinel/common
Lines changed: 21 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
| 24 | + | |
| 25 | + | |
23 | 26 | | |
24 | 27 | | |
25 | 28 | | |
| |||
38 | 41 | | |
39 | 42 | | |
40 | 43 | | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
41 | 61 | | |
42 | 62 | | |
43 | 63 | | |
| |||
47 | 67 | | |
48 | 68 | | |
49 | 69 | | |
50 | | - | |
| 70 | + | |
51 | 71 | | |
52 | 72 | | |
53 | 73 | | |
| |||
0 commit comments