K
- Key type.V
- Value type.public class PubSubCommandHandler<K,V> extends CommandHandler<K,V>
ChannelHandler
responsible for writing redis pub/sub commands
and reading the response stream from the server.buffer, queue, rsm
Constructor and Description |
---|
PubSubCommandHandler(BlockingQueue<Command<K,V,?>> queue,
RedisCodec<K,V> codec)
Initialize a new instance.
|
Modifier and Type | Method and Description |
---|---|
protected void |
decode(io.netty.channel.ChannelHandlerContext ctx,
io.netty.buffer.ByteBuf buffer) |
channelRead, channelRegistered, channelUnregistered, write
bind, close, connect, deregister, disconnect, flush, read
channelActive, channelInactive, channelReadComplete, channelWritabilityChanged, exceptionCaught, userEventTriggered
handlerAdded, handlerRemoved, isSharable
public PubSubCommandHandler(BlockingQueue<Command<K,V,?>> queue, RedisCodec<K,V> codec)
queue
- Command queue.codec
- Codec.protected void decode(io.netty.channel.ChannelHandlerContext ctx, io.netty.buffer.ByteBuf buffer) throws InterruptedException
decode
in class CommandHandler<K,V>
InterruptedException
Copyright © 2014. All rights reserved.