@ChannelHandler.Sharable public class NettySerializableMessageEncoder extends org.apache.storm.shade.io.netty.handler.codec.MessageToByteEncoder<INettySerializable>
| Modifier and Type | Field and Description |
|---|---|
static NettySerializableMessageEncoder |
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.storm.shade.io.netty.buffer.ByteBuf |
allocateBuffer(org.apache.storm.shade.io.netty.channel.ChannelHandlerContext ctx,
INettySerializable msg,
boolean preferDirect) |
protected void |
encode(org.apache.storm.shade.io.netty.channel.ChannelHandlerContext ctx,
INettySerializable msg,
org.apache.storm.shade.io.netty.buffer.ByteBuf out) |
acceptOutboundMessage, isPreferDirect, writebind, close, connect, deregister, disconnect, flush, readensureNotSharable, exceptionCaught, handlerAdded, handlerRemoved, isSharablepublic static final NettySerializableMessageEncoder INSTANCE
protected void encode(org.apache.storm.shade.io.netty.channel.ChannelHandlerContext ctx,
INettySerializable msg,
org.apache.storm.shade.io.netty.buffer.ByteBuf out)
throws Exception
encode in class org.apache.storm.shade.io.netty.handler.codec.MessageToByteEncoder<INettySerializable>Exceptionprotected org.apache.storm.shade.io.netty.buffer.ByteBuf allocateBuffer(org.apache.storm.shade.io.netty.channel.ChannelHandlerContext ctx,
INettySerializable msg,
boolean preferDirect)
throws Exception
allocateBuffer in class org.apache.storm.shade.io.netty.handler.codec.MessageToByteEncoder<INettySerializable>ExceptionCopyright © 2021 The Apache Software Foundation. All rights reserved.