Module io.github.bucket4j.core
Class AbstractCompareAndSwapBasedProxyManager<K>
java.lang.Object
io.github.bucket4j.distributed.proxy.AbstractProxyManager<K>
io.github.bucket4j.distributed.proxy.generic.compare_and_swap.AbstractCompareAndSwapBasedProxyManager<K>
- Type Parameters:
K- the generic type for unique identifiers that used to point to the bucket in external storage.
- All Implemented Interfaces:
ProxyManager<K>
The base class for proxy managers that built on top of idea that underlining storage provide transactions and locking.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractCompareAndSwapBasedProxyManager(ClientSideConfig clientSideConfig) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract AsyncCompareAndSwapOperationprotected abstract CompareAndSwapOperation<T> CommandResult<T><T> CompletableFuture<CommandResult<T>>executeAsync(K key, Request<T> request) Methods inherited from class io.github.bucket4j.distributed.proxy.AbstractProxyManager
asAsync, builder, currentTimeNanos, getBackwardCompatibilityVersion, getClientSideConfig, getClientSideTime, getProxyConfiguration, removeAsyncMethods 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
getProxy, isAsyncModeSupported, isExpireAfterWriteSupported, removeProxy, withMapper
-
Constructor Details
-
AbstractCompareAndSwapBasedProxyManager
-
-
Method Details
-
execute
- Specified by:
executein classAbstractProxyManager<K>
-
executeAsync
- Specified by:
executeAsyncin classAbstractProxyManager<K>
-
beginCompareAndSwapOperation
-
beginAsyncCompareAndSwapOperation
-