io.netty.channel.ChannelHandler
, io.netty.channel.ChannelOutboundHandler
@Sharable public class CommandEncoder extends io.netty.handler.codec.MessageToByteEncoder<CommandData<?,?>>
Modifier and Type | Field | Description |
---|---|---|
static CommandEncoder |
INSTANCE |
Constructor | Description |
---|---|
CommandEncoder() |
Modifier and Type | Method | Description |
---|---|---|
protected void |
encode(io.netty.channel.ChannelHandlerContext ctx,
CommandData<?,?> msg,
io.netty.buffer.ByteBuf out) |
|
void |
write(io.netty.channel.ChannelHandlerContext ctx,
Object msg,
io.netty.channel.ChannelPromise promise) |
exceptionCaught, handlerAdded, handlerRemoved
ensureNotSharable, exceptionCaught, handlerAdded, handlerRemoved, isSharable
bind, close, connect, deregister, disconnect, flush, read
public static final CommandEncoder INSTANCE
public void write(io.netty.channel.ChannelHandlerContext ctx, Object msg, io.netty.channel.ChannelPromise promise) throws Exception
write
in interface io.netty.channel.ChannelOutboundHandler
write
in class io.netty.handler.codec.MessageToByteEncoder<CommandData<?,?>>
Exception
protected void encode(io.netty.channel.ChannelHandlerContext ctx, CommandData<?,?> msg, io.netty.buffer.ByteBuf out) throws Exception
encode
in class io.netty.handler.codec.MessageToByteEncoder<CommandData<?,?>>
Exception
Copyright © 2014–2018 The Redisson Project. All rights reserved.