Class LocalMapProxyManager
java.lang.Object
io.github.bucket4j.distributed.proxy.AbstractProxyManager<String>
com.flowable.platform.engine.impl.sandbox.ratelimiter.bucket4j.LocalMapProxyManager
- All Implemented Interfaces:
io.github.bucket4j.distributed.proxy.ProxyManager<String>
public class LocalMapProxyManager
extends io.github.bucket4j.distributed.proxy.AbstractProxyManager<String>
- Author:
- Filip Hrisafov
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionLocalMapProxyManager(io.github.bucket4j.distributed.proxy.ClientSideConfig clientSideConfig) -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()protected <T> io.github.bucket4j.distributed.remote.CommandResult<T>protected <T> CompletableFuture<io.github.bucket4j.distributed.remote.CommandResult<T>>executeAsync(String key, io.github.bucket4j.distributed.remote.Request<T> request) booleanprotected CompletableFuture<Void>removeAsync(String key) voidremoveProxy(String key) Methods inherited from class io.github.bucket4j.distributed.proxy.AbstractProxyManager
asAsync, builder, getBackwardCompatibilityVersion, getClientSideConfig, getClientSideTime, getProxyConfigurationMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.github.bucket4j.distributed.proxy.ProxyManager
withMapper
-
Field Details
-
buckets
-
-
Constructor Details
-
LocalMapProxyManager
public LocalMapProxyManager() -
LocalMapProxyManager
public LocalMapProxyManager(io.github.bucket4j.distributed.proxy.ClientSideConfig clientSideConfig)
-
-
Method Details
-
execute
protected <T> io.github.bucket4j.distributed.remote.CommandResult<T> execute(String key, io.github.bucket4j.distributed.remote.Request<T> request) - Specified by:
executein classio.github.bucket4j.distributed.proxy.AbstractProxyManager<String>
-
executeAsync
protected <T> CompletableFuture<io.github.bucket4j.distributed.remote.CommandResult<T>> executeAsync(String key, io.github.bucket4j.distributed.remote.Request<T> request) - Specified by:
executeAsyncin classio.github.bucket4j.distributed.proxy.AbstractProxyManager<String>
-
removeAsync
- Specified by:
removeAsyncin classio.github.bucket4j.distributed.proxy.AbstractProxyManager<String>
-
removeProxy
-
isAsyncModeSupported
public boolean isAsyncModeSupported() -
clear
public void clear()
-