Module io.github.bucket4j.redis
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>
public class LettuceBasedProxyManager<K> extends AbstractCompareAndSwapBasedProxyManager<K>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classLettuceBasedProxyManager.LettuceBasedProxyManagerBuilder<K>
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected AsyncCompareAndSwapOperationbeginAsyncCompareAndSwapOperation(K key)protected CompareAndSwapOperationbeginCompareAndSwapOperation(K key)static <K> LettuceBasedProxyManager.LettuceBasedProxyManagerBuilder<K>builderFor(io.lettuce.core.api.async.RedisAsyncCommands<K,byte[]> redisAsyncCommands)static <K> LettuceBasedProxyManager.LettuceBasedProxyManagerBuilder<K>builderFor(io.lettuce.core.api.StatefulRedisConnection<K,byte[]> statefulRedisConnection)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)static LettuceBasedProxyManager.LettuceBasedProxyManagerBuilder<byte[]>builderFor(io.lettuce.core.cluster.RedisClusterClient redisClient)static LettuceBasedProxyManager.LettuceBasedProxyManagerBuilder<byte[]>builderFor(io.lettuce.core.RedisClient redisClient)booleanisAsyncModeSupported()booleanisExpireAfterWriteSupported()protected CompletableFuture<Void>removeAsync(K key)voidremoveProxy(K key)-
Methods inherited from class io.github.bucket4j.distributed.proxy.generic.compare_and_swap.AbstractCompareAndSwapBasedProxyManager
execute, executeAsync
-
Methods inherited from class io.github.bucket4j.distributed.proxy.AbstractProxyManager
asAsync, builder, getBackwardCompatibilityVersion, getClientSideConfig, getClientSideTime, getProxyConfiguration
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.github.bucket4j.distributed.proxy.ProxyManager
withMapper
-
-
-
-
Method Detail
-
builderFor
public static <K> LettuceBasedProxyManager.LettuceBasedProxyManagerBuilder<K> builderFor(io.lettuce.core.api.async.RedisAsyncCommands<K,byte[]> redisAsyncCommands)
-
isExpireAfterWriteSupported
public boolean isExpireAfterWriteSupported()
-
builderFor
public static <K> LettuceBasedProxyManager.LettuceBasedProxyManagerBuilder<K> builderFor(io.lettuce.core.api.StatefulRedisConnection<K,byte[]> statefulRedisConnection)
-
builderFor
public static LettuceBasedProxyManager.LettuceBasedProxyManagerBuilder<byte[]> builderFor(io.lettuce.core.RedisClient redisClient)
-
builderFor
public static LettuceBasedProxyManager.LettuceBasedProxyManagerBuilder<byte[]> builderFor(io.lettuce.core.cluster.RedisClusterClient redisClient)
-
builderFor
public static <K> LettuceBasedProxyManager.LettuceBasedProxyManagerBuilder<K> builderFor(io.lettuce.core.cluster.api.StatefulRedisClusterConnection<K,byte[]> connection)
-
builderFor
public static <K> LettuceBasedProxyManager.LettuceBasedProxyManagerBuilder<K> builderFor(io.lettuce.core.cluster.api.async.RedisAdvancedClusterAsyncCommands<K,byte[]> redisAsyncCommands)
-
beginCompareAndSwapOperation
protected CompareAndSwapOperation beginCompareAndSwapOperation(K key)
- Specified by:
beginCompareAndSwapOperationin classAbstractCompareAndSwapBasedProxyManager<K>
-
beginAsyncCompareAndSwapOperation
protected AsyncCompareAndSwapOperation beginAsyncCompareAndSwapOperation(K key)
- Specified by:
beginAsyncCompareAndSwapOperationin classAbstractCompareAndSwapBasedProxyManager<K>
-
removeProxy
public void removeProxy(K key)
-
removeAsync
protected CompletableFuture<Void> removeAsync(K key)
- Specified by:
removeAsyncin classAbstractProxyManager<K>
-
isAsyncModeSupported
public boolean isAsyncModeSupported()
-
-