Serialized Form
-
Package org.miaixz.bus.limiter
-
Package org.miaixz.bus.limiter.metric
-
Class org.miaixz.bus.limiter.metric.FallbackProvider
class FallbackProvider extends Object implements Serializable -
Class org.miaixz.bus.limiter.metric.MethodProvider
class MethodProvider extends Object implements Serializable-
Serialized Fields
-
cache
org.miaixz.bus.core.cache.provider.TimedCache<String,
Object> cache A timed cache to store results of hot method invocations. The cache key is a combination of the method name and its arguments, and the value is the method's return result. Entries are automatically pruned after their expiration time, which is configured byHolder.load().getSeconds().
-
-
-
Class org.miaixz.bus.limiter.metric.RequestProvider
class RequestProvider extends Object implements Serializable-
Serialized Fields
-
cleaner
ExecutorService cleaner
AnExecutorServiceused for asynchronously cleaning up expiredResourceManagerinstances. It uses a fixed thread pool with one thread. -
map
Map<Serializable,
ResourceManager> map A concurrent hash map to storeResourceManagerinstances, keyed by a serializable user identifier. EachResourceManagermanages the limiting rules for a specific user. -
supplier
Supplier supplier
The defaultSupplierimplementation that provides a unique object ID as the user identifier. This can be overridden by callingRequestProvider.setMarkSupplier(Supplier).
-
-
-