Add javadocs
This commit is contained in:
parent
613547b0b9
commit
e234abdbf7
@ -87,8 +87,19 @@ public abstract class ByteToMessageCodec<I> extends ChannelDuplexHandler {
|
||||
encoder.write(ctx, msgs, promise);
|
||||
}
|
||||
|
||||
/**
|
||||
* @see MessageToByteEncoder#encode(ChannelHandlerContext, Object, ByteBuf)
|
||||
*/
|
||||
protected abstract void encode(ChannelHandlerContext ctx, I msg, ByteBuf out) throws Exception;
|
||||
|
||||
/**
|
||||
* @see ByteToMessageDecoder#decode(ChannelHandlerContext, ByteBuf, MessageList)
|
||||
*/
|
||||
protected abstract void decode(ChannelHandlerContext ctx, ByteBuf in, MessageList<Object> out) throws Exception;
|
||||
|
||||
/**
|
||||
* @see ByteToMessageDecoder#decodeLast(ChannelHandlerContext, ByteBuf, MessageList)
|
||||
*/
|
||||
protected void decodeLast(ChannelHandlerContext ctx, ByteBuf in, MessageList<Object> out) throws Exception {
|
||||
decode(ctx, in, out);
|
||||
}
|
||||
|
@ -123,8 +123,15 @@ public abstract class MessageToMessageCodec<INBOUND_IN, OUTBOUND_IN> extends Cha
|
||||
return outboundMsgMatcher.match(msg);
|
||||
}
|
||||
|
||||
/**
|
||||
* @see MessageToMessageEncoder#encode(ChannelHandlerContext, Object, MessageList)
|
||||
*/
|
||||
protected abstract void encode(ChannelHandlerContext ctx, OUTBOUND_IN msg, MessageList<Object> out)
|
||||
throws Exception;
|
||||
|
||||
/**
|
||||
* @see MessageToMessageDecoder#decode(ChannelHandlerContext, Object, MessageList)
|
||||
*/
|
||||
protected abstract void decode(ChannelHandlerContext ctx, INBOUND_IN msg, MessageList<Object> out)
|
||||
throws Exception;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user