Interface ReactorNettyCodec<P>
- Type Parameters:
P- the message payload type
- All Known Implementing Classes:
AbstractNioBufferReactorNettyCodec,StompReactorNettyCodec
public interface ReactorNettyCodec<P>
Simple holder for a decodingFunctionand an encodingBiConsumerto use with Reactor Netty.- Since:
- 5.0
- Author:
- Rossen Stoyanchev
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Collection<Message<P>>decode(io.netty.buffer.ByteBuf inputBuffer)Decode the inputByteBufinto one or moreMessages.voidencode(Message<P> message, io.netty.buffer.ByteBuf outputBuffer)Encode the givenMessageto the outputByteBuf.
Method Detail
decode
Collection<Message<P>> decode(io.netty.buffer.ByteBuf inputBuffer)
Decode the inputByteBufinto one or moreMessages.- Parameters:
inputBuffer- the input buffer to decode from- Returns:
- 0 or more decoded messages