Index
All Classes and Interfaces|All Packages|Serialized Form
A
- add(String) - Static method in class org.miaixz.bus.limiter.metric.ResourceManager
-
Adds a resource key to the set of protected methods.
- add(Provider) - Static method in class org.miaixz.bus.limiter.metric.StrategyManager
-
Adds a
Providerto the strategy manager. - addMethod(String, Pair<StrategyMode, Annotation>) - Static method in class org.miaixz.bus.limiter.metric.MethodManager
-
Adds a method and its associated limiting strategy and annotation to the manager.
B
- bean - Variable in class org.miaixz.bus.limiter.proxy.ByteBuddyProxy
-
The target object (bean) for which the proxy is being created.
- Builder - Class in org.miaixz.bus.limiter
-
Utility class for building and resolving information related to method calls and classes.
- Builder() - Constructor for class org.miaixz.bus.limiter.Builder
- bus.limiter - module bus.limiter
-
bus.limiter
- ByteBuddyHandler - Class in org.miaixz.bus.limiter.proxy
-
An
InvocationHandlerimplementation that intercepts method calls to apply limiting rules based on annotations. - ByteBuddyHandler(ByteBuddyProxy) - Constructor for class org.miaixz.bus.limiter.proxy.ByteBuddyHandler
-
Constructs a new
ByteBuddyHandlerwith the specifiedByteBuddyProxy. - ByteBuddyProxy - Class in org.miaixz.bus.limiter.proxy
-
A utility class for creating ByteBuddy proxies to intercept method calls.
- ByteBuddyProxy(Object, Class<?>) - Constructor for class org.miaixz.bus.limiter.proxy.ByteBuddyProxy
-
Constructs a new
ByteBuddyProxywith the specified target bean and its original class.
C
- contain(String) - Static method in class org.miaixz.bus.limiter.metric.MethodManager
-
Checks if the manager contains information for a specific method name.
- contain(String) - Static method in class org.miaixz.bus.limiter.metric.ResourceManager
-
Checks if a given resource key is currently registered as a protected method.
- Context - Class in org.miaixz.bus.limiter
-
Context configuration class for the limiter module.
- Context() - Constructor for class org.miaixz.bus.limiter.Context
- count() - Element in annotation interface org.miaixz.bus.limiter.magic.annotation.Downgrade
-
Specifies the threshold count for the downgrade rule.
- count() - Element in annotation interface org.miaixz.bus.limiter.magic.annotation.Hotspot
-
Specifies the threshold count for the hotspot rule.
- count() - Element in annotation interface org.miaixz.bus.limiter.magic.annotation.Limiting
-
Specifies the maximum number of requests allowed within a defined duration.
D
- Downgrade - Annotation Interface in org.miaixz.bus.limiter.magic.annotation
-
Annotation for marking methods that require service request degradation (downgrade).
- duration() - Element in annotation interface org.miaixz.bus.limiter.magic.annotation.Hotspot
-
Specifies the duration in seconds for which the hotspot rule is active after being triggered.
- duration() - Element in annotation interface org.miaixz.bus.limiter.magic.annotation.Limiting
-
Specifies the time window in seconds during which the
Limiting.count()is applied.
E
- entry(String, Limiting) - Method in class org.miaixz.bus.limiter.metric.ResourceManager
-
Attempts to gain entry to a resource, applying the specified limiting rules.
F
- FALLBACK - Enum constant in enum class org.miaixz.bus.limiter.magic.StrategyMode
-
Represents a fallback strategy, typically used for graceful degradation when a service is overloaded.
- FallbackProvider - Class in org.miaixz.bus.limiter.metric
-
Implements the
Providerinterface for handling the FALLBACK strategy mode. - FallbackProvider() - Constructor for class org.miaixz.bus.limiter.metric.FallbackProvider
- FLOW_GRADE_QPS - Enum constant in enum class org.miaixz.bus.limiter.magic.FlowGrade
-
Flow control based on Queries Per Second (QPS).
- FLOW_GRADE_THREAD - Enum constant in enum class org.miaixz.bus.limiter.magic.FlowGrade
-
Flow control based on the number of concurrent threads.
- FlowGrade - Enum Class in org.miaixz.bus.limiter.magic
-
Enumeration representing different grades or types of flow control.
G
- get() - Method in class org.miaixz.bus.limiter.metric.FallbackProvider
-
Returns the strategy mode supported by this provider, which is
StrategyMode.FALLBACK. - get() - Method in class org.miaixz.bus.limiter.metric.MethodProvider
-
Returns the strategy mode supported by this provider, which is
StrategyMode.HOT_METHOD. - get() - Method in class org.miaixz.bus.limiter.metric.RequestProvider
-
Returns the strategy mode supported by this provider, which is
StrategyMode.REQUEST_LIMIT. - get() - Method in interface org.miaixz.bus.limiter.Provider
-
Retrieves the limiting strategy associated with this provider.
- get() - Method in class org.miaixz.bus.limiter.Supplier
-
Retrieves the current user or request identifier.
- get(StrategyMode) - Static method in class org.miaixz.bus.limiter.metric.StrategyManager
-
Retrieves the
Providerresponsible for executing a specificStrategyMode. - getAnnoInfo(String) - Static method in class org.miaixz.bus.limiter.metric.MethodManager
-
Retrieves the limiting strategy and annotation information for a given method name.
- getUserClass(Class<?>) - Static method in class org.miaixz.bus.limiter.Builder
-
Retrieves the actual user class from a given class, handling CGLIB proxies.
- grade() - Element in annotation interface org.miaixz.bus.limiter.magic.annotation.Downgrade
-
Specifies the flow grade for the downgrade rule.
- grade() - Element in annotation interface org.miaixz.bus.limiter.magic.annotation.Hotspot
-
Specifies the flow grade for the hotspot rule.
H
- Holder - Class in org.miaixz.bus.limiter
-
Global context holder for the limiter module.
- Holder() - Constructor for class org.miaixz.bus.limiter.Holder
- HOT_METHOD - Enum constant in enum class org.miaixz.bus.limiter.magic.StrategyMode
-
Represents a hotspot method strategy, focusing on limiting access to frequently accessed methods or resources.
- Hotspot - Annotation Interface in org.miaixz.bus.limiter.magic.annotation
-
Annotation for marking methods that require hotspot protection.
I
- intercept(Object, Method, Object[]) - Method in class org.miaixz.bus.limiter.Supplier
-
Provides a default interception message when a request is blocked by a limiter.
- invoke(Object, Method, Object[]) - Method in class org.miaixz.bus.limiter.proxy.ByteBuddyHandler
-
Intercepts method invocations and applies limiting rules if the method is configured for it.
- isClear() - Method in class org.miaixz.bus.limiter.metric.ResourceManager
-
Checks if all managed resources within this
ResourceManagerare clear (i.e., their protection has expired and they have been removed).
L
- Limiting - Annotation Interface in org.miaixz.bus.limiter.magic.annotation
-
Annotation for marking methods that require request limiting.
- load() - Static method in class org.miaixz.bus.limiter.Holder
-
Retrieves the global
Contextinstance.
M
- MethodManager - Class in org.miaixz.bus.limiter.metric
-
Manages the mapping between method names and their associated limiting strategy and annotation information.
- MethodManager() - Constructor for class org.miaixz.bus.limiter.metric.MethodManager
- MethodProvider - Class in org.miaixz.bus.limiter.metric
-
Implements the
Providerinterface for handling the HOT_METHOD strategy mode. - MethodProvider() - Constructor for class org.miaixz.bus.limiter.metric.MethodProvider
-
Constructs a new
MethodProviderand initializes the timed cache.
O
- org.miaixz.bus.limiter - package org.miaixz.bus.limiter
-
Provides core classes for service request flow control and limiting functionalities.
- org.miaixz.bus.limiter.magic - package org.miaixz.bus.limiter.magic
-
Provides core interfaces and enumerations for defining limiting strategies and flow grades.
- org.miaixz.bus.limiter.magic.annotation - package org.miaixz.bus.limiter.magic.annotation
-
Provides annotations for defining various limiting and protection rules.
- org.miaixz.bus.limiter.metric - package org.miaixz.bus.limiter.metric
-
Provides classes related to metric management and strategy implementation for the limiter module.
- org.miaixz.bus.limiter.proxy - package org.miaixz.bus.limiter.proxy
-
Provides proxy-related classes for intercepting method calls and applying limiting logic.
P
- process(Object, Method, Object[]) - Method in class org.miaixz.bus.limiter.metric.FallbackProvider
-
Processes the method invocation by attempting to find and invoke a fallback method.
- process(Object, Method, Object[]) - Method in class org.miaixz.bus.limiter.metric.MethodProvider
-
Processes the method invocation by first checking if the result is available in the cache.
- process(Object, Method, Object[]) - Method in class org.miaixz.bus.limiter.metric.RequestProvider
-
Processes the method invocation by applying request limiting rules.
- process(Object, Method, Object[]) - Method in interface org.miaixz.bus.limiter.Provider
-
Processes a method invocation according to the limiting rules defined by this provider.
- process(Object, Method, Object[], String, StrategyMode) - Static method in class org.miaixz.bus.limiter.Sentinel
-
Executes the given method with the specified limiting strategy.
- Provider - Interface in org.miaixz.bus.limiter
-
Defines the contract for a limiter provider, which is responsible for executing limiting rules.
- proxy() - Method in class org.miaixz.bus.limiter.proxy.ByteBuddyProxy
-
Creates and returns a ByteBuddy proxy instance for the
ByteBuddyProxy.bean.
R
- register(Downgrade, String) - Static method in class org.miaixz.bus.limiter.Registry
-
Registers a downgrade rule based on the provided
Downgradeannotation. - register(Hotspot, String) - Static method in class org.miaixz.bus.limiter.Registry
-
Registers a hotspot rule based on the provided
Hotspotannotation. - register(Limiting, String) - Static method in class org.miaixz.bus.limiter.Registry
-
Registers a request limiting rule based on the provided
Limitingannotation. - Registry - Class in org.miaixz.bus.limiter
-
Manages the registration of various limiting and protection rules, such as downgrade, hotspot, and request limiting.
- Registry() - Constructor for class org.miaixz.bus.limiter.Registry
- REQUEST_LIMIT - Enum constant in enum class org.miaixz.bus.limiter.magic.StrategyMode
-
Represents a request limiting strategy, controlling the rate of incoming requests.
- RequestProvider - Class in org.miaixz.bus.limiter.metric
-
Implements the
Providerinterface for handling the REQUEST_LIMIT strategy mode. - RequestProvider() - Constructor for class org.miaixz.bus.limiter.metric.RequestProvider
- resolveMethodName(Method) - Static method in class org.miaixz.bus.limiter.Builder
-
Resolves and caches a unique string representation for the given method.
- ResourceManager - Class in org.miaixz.bus.limiter.metric
-
Manages resources and their associated limiting protections for a specific user or context.
- ResourceManager() - Constructor for class org.miaixz.bus.limiter.metric.ResourceManager
S
- Sentinel - Class in org.miaixz.bus.limiter
-
Sentinel execution class for applying various limiting and protection strategies.
- Sentinel() - Constructor for class org.miaixz.bus.limiter.Sentinel
- set(Context) - Static method in class org.miaixz.bus.limiter.Holder
-
Sets the global
Contextinstance. - setMarkSupplier(Supplier) - Method in class org.miaixz.bus.limiter.metric.RequestProvider
-
Sets a new user identifier provider.
- StrategyManager - Class in org.miaixz.bus.limiter.metric
-
Manages and provides access to different limiting strategy implementations.
- StrategyManager() - Constructor for class org.miaixz.bus.limiter.metric.StrategyManager
- StrategyMode - Enum Class in org.miaixz.bus.limiter.magic
-
Enumeration representing different strategy modes for the limiter.
- Supplier - Class in org.miaixz.bus.limiter
-
Abstract base class for a supplier that provides a unique identifier for a user or request.
- Supplier() - Constructor for class org.miaixz.bus.limiter.Supplier
T
- type() - Method in interface org.miaixz.bus.limiter.Provider
-
Returns the type of this provider, which is
EnumValue.Povider.LIMITER.
V
- valueOf(String) - Static method in enum class org.miaixz.bus.limiter.magic.FlowGrade
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class org.miaixz.bus.limiter.magic.StrategyMode
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class org.miaixz.bus.limiter.magic.FlowGrade
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class org.miaixz.bus.limiter.magic.StrategyMode
-
Returns an array containing the constants of this enum class, in the order they are declared.
All Classes and Interfaces|All Packages|Serialized Form