Class AbstractNioBufferReactorNettyCodec<P>
java.lang.Object
org.springframework.messaging.tcp.reactor.AbstractNioBufferReactorNettyCodec<P>
- Type Parameters:
- P- the message payload type
- All Implemented Interfaces:
- ReactorNettyCodec<P>
- Direct Known Subclasses:
- StompReactorNettyCodec
public abstract class AbstractNioBufferReactorNettyCodec<P>
extends Object
implements ReactorNettyCodec<P>
Convenient base class for 
ReactorNettyCodec implementations that need
 to work with NIO ByteBuffers.- Since:
- 5.0
- Author:
- Rossen Stoyanchev
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptiondecode(io.netty.buffer.ByteBuf inputBuffer) Decode the inputByteBufinto one or moreMessages.decodeInternal(ByteBuffer nioBuffer) voidEncode the givenMessageto the outputByteBuf.protected abstract ByteBufferencodeInternal(Message<P> message) 
- 
Constructor Details- 
AbstractNioBufferReactorNettyCodecpublic AbstractNioBufferReactorNettyCodec()
 
- 
- 
Method Details- 
decodeDescription copied from interface:ReactorNettyCodecDecode the inputByteBufinto one or moreMessages.- Specified by:
- decodein interface- ReactorNettyCodec<P>
- Parameters:
- inputBuffer- the input buffer to decode from
- Returns:
- 0 or more decoded messages
 
- 
encodeDescription copied from interface:ReactorNettyCodecEncode the givenMessageto the outputByteBuf.- Specified by:
- encodein interface- ReactorNettyCodec<P>
- Parameters:
- message- the message to encode
- outputBuffer- the buffer to write to
 
- 
decodeInternal
- 
encodeInternal
 
-