Interface ReactorNettyCodec<P>
- Type Parameters:
P
- the message payload type
- All Known Implementing Classes:
AbstractNioBufferReactorNettyCodec
,StompReactorNettyCodec
public interface ReactorNettyCodec<P>
Simple holder for a decodingFunction
and an encodingBiConsumer
to 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 inputByteBuf
into one or moreMessages
.void
encode(Message<P> message, io.netty.buffer.ByteBuf outputBuffer)
Encode the givenMessage
to the outputByteBuf
.
Method Detail
decode
Collection<Message<P>> decode(io.netty.buffer.ByteBuf inputBuffer)
Decode the inputByteBuf
into one or moreMessages
.- Parameters:
inputBuffer
- the input buffer to decode from- Returns:
- 0 or more decoded messages