public class MessageEncoder
extends io.netty.handler.codec.MessageToByteEncoder<java.lang.Object>
| Constructor and Description |
|---|
MessageEncoder(org.onosproject.store.cluster.messaging.Endpoint endpoint,
int preamble) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
acceptOutboundMessage(java.lang.Object msg) |
protected void |
encode(io.netty.channel.ChannelHandlerContext context,
java.lang.Object rawMessage,
io.netty.buffer.ByteBuf out) |
void |
exceptionCaught(io.netty.channel.ChannelHandlerContext context,
java.lang.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,
java.lang.Object rawMessage,
io.netty.buffer.ByteBuf out)
throws java.lang.Exception
encode in class io.netty.handler.codec.MessageToByteEncoder<java.lang.Object>java.lang.Exceptionpublic void exceptionCaught(io.netty.channel.ChannelHandlerContext context,
java.lang.Throwable cause)
exceptionCaught in interface io.netty.channel.ChannelHandlerexceptionCaught in class io.netty.channel.ChannelHandlerAdapterpublic final boolean acceptOutboundMessage(java.lang.Object msg)
throws java.lang.Exception
acceptOutboundMessage in class io.netty.handler.codec.MessageToByteEncoder<java.lang.Object>java.lang.Exception