类 RedisClusterPubSubConnection
java.lang.Object
com.cdkjframework.redis.realize.RedisClusterPubSubConnection
- 所有已实现的接口:
io.lettuce.core.api.AsyncCloseable,io.lettuce.core.api.StatefulConnection<String,,String> io.lettuce.core.api.StatefulRedisConnection<String,,String> io.lettuce.core.cluster.pubsub.StatefulRedisClusterPubSubConnection<String,,String> io.lettuce.core.internal.AsyncCloseable,io.lettuce.core.pubsub.StatefulRedisPubSubConnection<String,,String> AutoCloseable
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voidaddListener(io.lettuce.core.api.push.PushListener pushListener) voidaddListener(io.lettuce.core.cluster.api.push.RedisClusterPushListener redisClusterPushListener) voidaddListener(io.lettuce.core.cluster.pubsub.RedisClusterPubSubListener<String, String> redisClusterPubSubListener) voidaddListener(io.lettuce.core.pubsub.RedisPubSubListener<String, String> redisPubSubListener) voidaddListener(io.lettuce.core.RedisConnectionStateListener redisConnectionStateListener) async()voidclose()Collection<io.lettuce.core.protocol.RedisCommand<String,String, ?>> dispatch(Collection<? extends io.lettuce.core.protocol.RedisCommand<String, String, ?>> collection) voidgetConnection(String s, int i) CompletableFuture<io.lettuce.core.pubsub.StatefulRedisPubSubConnection<String,String>> CompletableFuture<io.lettuce.core.pubsub.StatefulRedisPubSubConnection<String,String>> getConnectionAsync(String s, int i) io.lettuce.core.ClientOptionsio.lettuce.core.cluster.models.partitions.Partitionsio.lettuce.core.resource.ClientResourcesbooleanisMulti()booleanisOpen()reactive()voidremoveListener(io.lettuce.core.api.push.PushListener pushListener) voidremoveListener(io.lettuce.core.cluster.api.push.RedisClusterPushListener redisClusterPushListener) voidremoveListener(io.lettuce.core.cluster.pubsub.RedisClusterPubSubListener<String, String> redisClusterPubSubListener) voidremoveListener(io.lettuce.core.pubsub.RedisPubSubListener<String, String> redisPubSubListener) voidremoveListener(io.lettuce.core.RedisConnectionStateListener redisConnectionStateListener) voidreset()已过时。voidsetAutoFlushCommands(boolean b) voidsetNodeMessagePropagation(boolean b) voidsetTimeout(Duration duration) sync()
-
构造器详细资料
-
RedisClusterPubSubConnection
public RedisClusterPubSubConnection()
-
-
方法详细资料
-
isMulti
public boolean isMulti() -
sync
-
async
-
reactive
-
addListener
-
removeListener
-
getConnection
-
getConnectionAsync
public CompletableFuture<io.lettuce.core.pubsub.StatefulRedisPubSubConnection<String,String>> getConnectionAsync(String s) -
getConnection
-
getConnectionAsync
public CompletableFuture<io.lettuce.core.pubsub.StatefulRedisPubSubConnection<String,String>> getConnectionAsync(String s, int i) -
getPartitions
public io.lettuce.core.cluster.models.partitions.Partitions getPartitions() -
setNodeMessagePropagation
public void setNodeMessagePropagation(boolean b) -
addListener
-
removeListener
-
setTimeout
-
getTimeout
-
dispatch
-
dispatch
public Collection<io.lettuce.core.protocol.RedisCommand<String,String, dispatch?>> (Collection<? extends io.lettuce.core.protocol.RedisCommand<String, String, ?>> collection) -
close
public void close()- 指定者:
close在接口中AutoCloseable- 指定者:
close在接口中io.lettuce.core.api.StatefulConnection<String,String>
-
closeAsync
-
isOpen
public boolean isOpen() -
getOptions
public io.lettuce.core.ClientOptions getOptions() -
getResources
public io.lettuce.core.resource.ClientResources getResources() -
reset
已过时。 -
setAutoFlushCommands
public void setAutoFlushCommands(boolean b) -
flushCommands
public void flushCommands() -
addListener
public void addListener(io.lettuce.core.cluster.api.push.RedisClusterPushListener redisClusterPushListener) -
removeListener
public void removeListener(io.lettuce.core.cluster.api.push.RedisClusterPushListener redisClusterPushListener) -
addListener
public void addListener(io.lettuce.core.api.push.PushListener pushListener) -
removeListener
public void removeListener(io.lettuce.core.api.push.PushListener pushListener) -
addListener
public void addListener(io.lettuce.core.RedisConnectionStateListener redisConnectionStateListener) -
removeListener
public void removeListener(io.lettuce.core.RedisConnectionStateListener redisConnectionStateListener)
-