-
Notifications
You must be signed in to change notification settings - Fork 11
io microsphere alibaba sentinel common util SentinelUtils
Type: Class | Module: microsphere-alibaba-sentinel-commons | Package: io.microsphere.alibaba.sentinel.common.util | Since: 1.0.0
Alibaba Sentinel Utilities Class
public abstract class SentinelUtilsAuthor: Mercy
-
Introduced in:
1.0.0 -
Current Project Version:
0.2.0-SNAPSHOT
This component is tested and compatible with the following Java versions:
| Java Version | Status |
|---|---|
| Java 17 | ✅ Compatible |
| Java 21 | ✅ Compatible |
| Java 25 | ✅ Compatible |
Add the following dependency to your pom.xml:
<dependency>
<groupId>io.github.microsphere-projects</groupId>
<artifactId>microsphere-alibaba-sentinel-commons</artifactId>
<version>${microsphere-alibaba-sentinel.version}</version>
</dependency>Tip: Use the BOM (
microsphere-alibaba-sentinel-dependencies) for consistent version management. See the Getting Started guide.
import io.microsphere.alibaba.sentinel.common.util.SentinelUtils;| Method | Description |
|---|---|
buildResourceName |
The MethodHandle of ContextUtil#resetContextMap()
|
getFlowDataId |
Get the Flow Data ID |
getPluginEnabledPropertyName |
Get the Property Name of plugin enabled property : "microsphere.sentinel.${pluginName}.enabled" |
isPluginEnabled |
Is the plugin enabled ? |
getDefaultContextName |
Get the default Context name |
getResourceTypeAsString |
Get the label string for resource type |
findSentinelMetricsTaskExecutor |
Find the Sentinel Metrics Task ScheduledExecutorService Executor from FlowRuleManager
|
getSentinelMetricsTaskExecutor |
Get the Sentinel Metrics Task ScheduledExecutorService Executor
|
resetContextMap |
Reset the ContextUtil#resetContextMap() context map of Sentinel |
public static String buildResourceName(Method method)The MethodHandle of ContextUtil#resetContextMap()
public static final String getPluginEnabledPropertyName(String pluginName)Get the Property Name of plugin enabled property : "microsphere.sentinel.${pluginName}.enabled"
public static ScheduledExecutorService findSentinelMetricsTaskExecutor()Find the Sentinel Metrics Task ScheduledExecutorService Executor from FlowRuleManager
public static ScheduledExecutorService getSentinelMetricsTaskExecutor()Get the Sentinel Metrics Task ScheduledExecutorService Executor
public static void resetContextMap()Reset the ContextUtil#resetContextMap() context map of Sentinel
This documentation was auto-generated from the source code of microsphere-alibaba-sentinel.
alibaba-sentinel-commons
- AbstractSentinelPlugin
- JMXSentinelPluginRepository
- SentinelConstants
- SentinelContext
- SentinelOperations
- SentinelPlugin
- SentinelPluginRepository
- SentinelTemplate
- SentinelUtils
- SimpleSentinelPlugin
- SimpleSentinelPluginRepository
alibaba-sentinel-spring-boot
- ConditionalOnSentinelAvailable
- ConditionalOnSentinelEnabled
- SentinelAlibabaDruidAutoConfiguration
- SentinelMyBatisAutoConfiguration
- SentinelRedisAutoConfiguration
- SentinelSpringWebAutoConfiguration
alibaba-sentinel-spring-cloud