Module io.github.bucket4j.lettuce
Class LettuceBasedProxyManager<K>
java.lang.Object
io.github.bucket4j.distributed.proxy.AbstractProxyManager<K>
io.github.bucket4j.distributed.proxy.generic.compare_and_swap.AbstractCompareAndSwapBasedProxyManager<K>
io.github.bucket4j.redis.lettuce.cas.LettuceBasedProxyManager<K>
- All Implemented Interfaces:
ProxyManager<K>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionprotected AsyncCompareAndSwapOperationprotected CompareAndSwapOperationstatic <K> LettuceBasedProxyManager.LettuceBasedProxyManagerBuilder<K>builderFor(io.lettuce.core.api.async.RedisAsyncCommands<K, byte[]> redisAsyncCommands) Deprecated.static <K> LettuceBasedProxyManager.LettuceBasedProxyManagerBuilder<K>builderFor(io.lettuce.core.api.StatefulRedisConnection<K, byte[]> statefulRedisConnection) Deprecated.static <K> LettuceBasedProxyManager.LettuceBasedProxyManagerBuilder<K>builderFor(io.lettuce.core.cluster.api.async.RedisAdvancedClusterAsyncCommands<K, byte[]> redisAsyncCommands) static <K> LettuceBasedProxyManager.LettuceBasedProxyManagerBuilder<K>builderFor(io.lettuce.core.cluster.api.StatefulRedisClusterConnection<K, byte[]> connection) Deprecated.static LettuceBasedProxyManager.LettuceBasedProxyManagerBuilder<byte[]>builderFor(io.lettuce.core.cluster.RedisClusterClient redisClient) Deprecated.static LettuceBasedProxyManager.LettuceBasedProxyManagerBuilder<byte[]>builderFor(io.lettuce.core.RedisClient redisClient) Deprecated.booleanbooleanprotected CompletableFuture<Void>removeAsync(K key) voidremoveProxy(K key) Methods inherited from class io.github.bucket4j.distributed.proxy.generic.compare_and_swap.AbstractCompareAndSwapBasedProxyManager
execute, executeAsyncMethods inherited from class io.github.bucket4j.distributed.proxy.AbstractProxyManager
asAsync, builder, currentTimeNanos, 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
getProxy, withMapper
-
Constructor Details
-
LettuceBasedProxyManager
public LettuceBasedProxyManager(LettuceBasedProxyManager.LettuceBasedProxyManagerBuilder<K> builder) -
LettuceBasedProxyManager
-
-
Method Details
-
builderFor
@Deprecated public static <K> LettuceBasedProxyManager.LettuceBasedProxyManagerBuilder<K> builderFor(io.lettuce.core.api.async.RedisAsyncCommands<K, byte[]> redisAsyncCommands) Deprecated. -
builderFor
@Deprecated public static <K> LettuceBasedProxyManager.LettuceBasedProxyManagerBuilder<K> builderFor(io.lettuce.core.api.StatefulRedisConnection<K, byte[]> statefulRedisConnection) Deprecated. -
builderFor
@Deprecated public static LettuceBasedProxyManager.LettuceBasedProxyManagerBuilder<byte[]> builderFor(io.lettuce.core.RedisClient redisClient) Deprecated. -
builderFor
@Deprecated public static LettuceBasedProxyManager.LettuceBasedProxyManagerBuilder<byte[]> builderFor(io.lettuce.core.cluster.RedisClusterClient redisClient) Deprecated. -
builderFor
@Deprecated public static <K> LettuceBasedProxyManager.LettuceBasedProxyManagerBuilder<K> builderFor(io.lettuce.core.cluster.api.StatefulRedisClusterConnection<K, byte[]> connection) Deprecated. -
builderFor
@Deprecated public static <K> LettuceBasedProxyManager.LettuceBasedProxyManagerBuilder<K> builderFor(io.lettuce.core.cluster.api.async.RedisAdvancedClusterAsyncCommands<K, byte[]> redisAsyncCommands) -
isExpireAfterWriteSupported
public boolean isExpireAfterWriteSupported() -
beginCompareAndSwapOperation
- Specified by:
beginCompareAndSwapOperationin classAbstractCompareAndSwapBasedProxyManager<K>
-
beginAsyncCompareAndSwapOperation
- Specified by:
beginAsyncCompareAndSwapOperationin classAbstractCompareAndSwapBasedProxyManager<K>
-
removeProxy
-
removeAsync
- Specified by:
removeAsyncin classAbstractProxyManager<K>
-
isAsyncModeSupported
public boolean isAsyncModeSupported()
-
Bucket4jLettuce.casBasedBuilder(RedisAsyncCommands)