类 RedisPubSubConnection
java.lang.Object
com.cdkjframework.redis.realize.RedisPubSubConnection
- 所有已实现的接口:
io.lettuce.core.api.AsyncCloseable,io.lettuce.core.api.StatefulConnection<String,,String> io.lettuce.core.api.StatefulRedisConnection<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.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) voidio.lettuce.core.ClientOptionsio.lettuce.core.resource.ClientResourcesbooleanisMulti()booleanisOpen()reactive()voidremoveListener(io.lettuce.core.api.push.PushListener pushListener) voidremoveListener(io.lettuce.core.pubsub.RedisPubSubListener<String, String> redisPubSubListener) voidremoveListener(io.lettuce.core.RedisConnectionStateListener redisConnectionStateListener) voidreset()已过时。voidsetAutoFlushCommands(boolean b) voidsetTimeout(Duration duration) sync()
-
构造器详细资料
-
RedisPubSubConnection
public RedisPubSubConnection()
-
-
方法详细资料
-
isMulti
public boolean isMulti() -
sync
-
async
-
reactive
-
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.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)
-