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.| Modifier and Type | Field and Description |
|---|---|
private RedisCodec<K,V> |
codec |
private PubSubOutput<K,V> |
output |
buffer, queue, rsm| Constructor and Description |
|---|
PubSubCommandHandler(java.util.concurrent.BlockingQueue<Command<K,V,?>> queue,
RedisCodec<K,V> codec)
Initialize a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
decode(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.buffer.ChannelBuffer buffer) |
channelOpen, messageReceived, writeRequestedbindRequested, channelBound, channelClosed, channelConnected, channelDisconnected, channelInterestChanged, channelUnbound, childChannelClosed, childChannelOpen, closeRequested, connectRequested, disconnectRequested, exceptionCaught, handleDownstream, handleUpstream, setInterestOpsRequested, unbindRequested, writeCompleteprivate RedisCodec<K,V> codec
private PubSubOutput<K,V> output
protected void decode(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.buffer.ChannelBuffer buffer)
throws java.lang.InterruptedException
decode in class CommandHandler<K,V>java.lang.InterruptedException