K - Key type.V - Value type.public interface RedisChannelWriter<K,V> extends Closeable
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
reset()
Reset the writer state.
|
void |
setRedisChannelHandler(RedisChannelHandler<K,V> redisChannelHandler)
Set the corresponding connection instance in order to notify it about channel active/inactive state.
|
<T> RedisCommand<K,V,T> |
write(RedisCommand<K,V,T> command)
Write a command on the channel.
|
<T> RedisCommand<K,V,T> write(RedisCommand<K,V,T> command)
T - result typecommand - the redis commandvoid close()
close in interface AutoCloseableclose in interface Closeablevoid reset()
void setRedisChannelHandler(RedisChannelHandler<K,V> redisChannelHandler)
redisChannelHandler - the channel handler (external connection object)Copyright © 2015. All rights reserved.