Package com.rabbitmq.client.impl.nio
Interface ByteBufferFactory
- 
- All Known Implementing Classes:
- DefaultByteBufferFactory
 
 public interface ByteBufferFactoryContract to createByteBuffers.- Since:
- 4.9.0
- See Also:
- NioParams
 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description ByteBuffercreateEncryptedReadBuffer(NioContext nioContext)Create the network readByteBuffer.ByteBuffercreateEncryptedWriteBuffer(NioContext nioContext)Create the network writeByteBuffer.ByteBuffercreateReadBuffer(NioContext nioContext)Create theByteBufferthat contains inbound frames.ByteBuffercreateWriteBuffer(NioContext nioContext)Create theByteBufferthat contains outbound frames.
 
- 
- 
- 
Method Detail- 
createReadBufferByteBuffer createReadBuffer(NioContext nioContext) Create theByteBufferthat contains inbound frames. This buffer is the network buffer for plain connections. When using SSL/TLS, this buffer isn't directly connected to the network, the encrypted read buffer is.- Parameters:
- nioContext-
- Returns:
 
 - 
createWriteBufferByteBuffer createWriteBuffer(NioContext nioContext) Create theByteBufferthat contains outbound frames. This buffer is the network buffer for plain connections. When using SSL/TLS, this buffer isn't directed connected to the network, the encrypted write buffer is.- Parameters:
- nioContext-
- Returns:
 
 - 
createEncryptedReadBufferByteBuffer createEncryptedReadBuffer(NioContext nioContext) Create the network readByteBuffer. This buffer contains encrypted frames read from the network. TheSSLEnginedecrypts frame and pass them over to the read buffer.- Parameters:
- nioContext-
- Returns:
 
 - 
createEncryptedWriteBufferByteBuffer createEncryptedWriteBuffer(NioContext nioContext) Create the network writeByteBuffer. This buffer contains encrypted outbound frames. These frames come from the write buffer that sends them through theSSLContextfor encryption to this buffer.- Parameters:
- nioContext-
- Returns:
 
 
- 
 
-