public class MessageEncoder extends io.netty.handler.codec.MessageToByteEncoder<Object>
| Constructor and Description |
|---|
MessageEncoder(org.onosproject.store.cluster.messaging.Endpoint endpoint,
int preamble) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
acceptOutboundMessage(Object msg) |
protected void |
encode(io.netty.channel.ChannelHandlerContext context,
Object rawMessage,
io.netty.buffer.ByteBuf out) |
void |
exceptionCaught(io.netty.channel.ChannelHandlerContext context,
Throwable cause) |
allocateBuffer, isPreferDirect, writebind, close, connect, deregister, disconnect, flush, readhandlerAdded, handlerRemoved, isSharablepublic MessageEncoder(org.onosproject.store.cluster.messaging.Endpoint endpoint,
int preamble)
protected void encode(io.netty.channel.ChannelHandlerContext context,
Object rawMessage,
io.netty.buffer.ByteBuf out)
throws Exception
public void exceptionCaught(io.netty.channel.ChannelHandlerContext context,
Throwable cause)
exceptionCaught in interface io.netty.channel.ChannelHandlerexceptionCaught in class io.netty.channel.ChannelHandlerAdapter