@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, write
bind, close, connect, deregister, disconnect, flush, read
ensureNotSharable, exceptionCaught, handlerAdded, handlerRemoved, isSharable
public 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>
Exception
protected 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>
Exception
Copyright © 2019 The Apache Software Foundation. All rights reserved.