com.lambdaworks.redis.pubsub
Class PubSubCommandHandler<K,V>
java.lang.Object
org.jboss.netty.channel.SimpleChannelHandler
com.lambdaworks.redis.protocol.CommandHandler<K,V>
com.lambdaworks.redis.pubsub.PubSubCommandHandler<K,V>
- Type Parameters:
K - Key type.V - Value type.
- All Implemented Interfaces:
- ChannelDownstreamHandler, ChannelHandler, ChannelUpstreamHandler
public class PubSubCommandHandler<K,V>
- extends CommandHandler<K,V>
A netty ChannelHandler responsible for writing redis pub/sub commands
and reading the response stream from the server.
- Author:
- Will Glozer
| Methods inherited from class org.jboss.netty.channel.SimpleChannelHandler |
bindRequested, channelBound, channelClosed, channelConnected, channelDisconnected, channelInterestChanged, channelUnbound, childChannelClosed, childChannelOpen, closeRequested, connectRequested, disconnectRequested, exceptionCaught, handleDownstream, handleUpstream, setInterestOpsRequested, unbindRequested, writeComplete |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PubSubCommandHandler
public PubSubCommandHandler(BlockingQueue<Command<K,V,?>> queue,
RedisCodec<K,V> codec)
- Initialize a new instance.
- Parameters:
queue - Command queue.codec - Codec.
decode
protected void decode(ChannelHandlerContext ctx,
ChannelBuffer buffer)
throws InterruptedException
- Overrides:
decode in class CommandHandler<K,V>
- Throws:
InterruptedException
Copyright © 2013. All Rights Reserved.