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.CommandHandler.LifecycleStateChannelHandler.Sharablebuffer, channel, clientOptions, clientResources, commandBuffer, commandHandlerId, queue, rsm, stateLock, transportBuffer, writers| Constructor and Description |
|---|
PubSubCommandHandler(ClientOptions clientOptions,
ClientResources clientResources,
Queue<RedisCommand<K,V,?>> queue,
RedisCodec<K,V> codec)
Initialize a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
decode(ChannelHandlerContext ctx,
ByteBuf buffer) |
activateCommandHandlerAndExecuteBufferedCommands, bufferCommand, channelActive, channelInactive, channelRead, channelRegistered, channelUnregistered, close, decrementWriters, exceptionCaught, flushCommands, getState, incrementWriters, initialState, isClosed, lockWritersExclusive, logPrefix, prepareReset, reset, setAutoFlushCommands, setRedisChannelHandler, setState, unlockWritersExclusive, write, write, writeToBuffer, writeToChannelbind, close, connect, deregister, disconnect, flush, readchannelReadComplete, channelWritabilityChanged, userEventTriggeredhandlerAdded, handlerRemoved, isSharableclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithandlerAdded, handlerRemovedpublic PubSubCommandHandler(ClientOptions clientOptions, ClientResources clientResources, Queue<RedisCommand<K,V,?>> queue, RedisCodec<K,V> codec)
clientOptions - client options for the connectionclientResources - client resources for this connectionqueue - Command queue.codec - Codec.protected void decode(ChannelHandlerContext ctx, ByteBuf buffer) throws InterruptedException
decode in class CommandHandler<K,V>InterruptedExceptionCopyright © 2016. All rights reserved.