Interface TcpMessageCodec<P>
- Type Parameters:
- P- the message payload type
- All Known Implementing Classes:
- StompTcpMessageCodec
public interface TcpMessageCodec<P>
Contract to encode and decode a 
Message to and from a ByteBuffer
allowing a higher-level protocol (for example, STOMP over TCP) to plug in.- Since:
- 6.0
- Author:
- Rossen Stoyanchev
- 
Method SummaryModifier and TypeMethodDescriptiondecode(ByteBuffer buffer) Decode the inputByteBufferinto one or moreMessages.Encode the givenMessageto the outputByteBuffer.
- 
Method Details- 
decodeDecode the inputByteBufferinto one or moreMessages.- Parameters:
- buffer- the input buffer to decode from
- Returns:
- 0 or more decoded messages
 
- 
encodeEncode the givenMessageto the outputByteBuffer.- Parameters:
- message- the message to encode
- Returns:
- the encoded buffer
 
 
-