public class CommandsQueue
extends io.netty.channel.ChannelDuplexHandler
Modifier and Type | Field and Description |
---|---|
static io.netty.util.AttributeKey<QueueCommand> |
CURRENT_COMMAND |
Constructor and Description |
---|
CommandsQueue() |
Modifier and Type | Method and Description |
---|---|
void |
channelInactive(io.netty.channel.ChannelHandlerContext ctx) |
void |
sendNextCommand(io.netty.channel.Channel channel) |
void |
write(io.netty.channel.ChannelHandlerContext ctx,
Object msg,
io.netty.channel.ChannelPromise promise) |
bind, close, connect, deregister, disconnect, flush, read
channelActive, channelRead, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggered
ensureNotSharable, handlerAdded, handlerRemoved, isSharable
public static final io.netty.util.AttributeKey<QueueCommand> CURRENT_COMMAND
public void sendNextCommand(io.netty.channel.Channel channel)
public void channelInactive(io.netty.channel.ChannelHandlerContext ctx) throws Exception
channelInactive
in interface io.netty.channel.ChannelInboundHandler
channelInactive
in class io.netty.channel.ChannelInboundHandlerAdapter
Exception
Copyright © 2014–2020 Redisson. All rights reserved.