Package com.rabbitmq.client.impl.nio
Interface ByteBufferFactory
- All Known Implementing Classes:
DefaultByteBufferFactory
public interface ByteBufferFactory
Contract to create
ByteBuffer
s.- Since:
- 5.5.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptioncreateEncryptedReadBuffer
(NioContext nioContext) Create the network readByteBuffer
.createEncryptedWriteBuffer
(NioContext nioContext) Create the network writeByteBuffer
.createReadBuffer
(NioContext nioContext) Create theByteBuffer
that contains inbound frames.createWriteBuffer
(NioContext nioContext) Create theByteBuffer
that contains outbound frames.
-
Method Details
-
createReadBuffer
Create theByteBuffer
that 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:
-
createWriteBuffer
Create theByteBuffer
that 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:
-
createEncryptedReadBuffer
Create the network readByteBuffer
. This buffer contains encrypted frames read from the network. TheSSLEngine
decrypts frame and pass them over to the read buffer.- Parameters:
nioContext
-- Returns:
-
createEncryptedWriteBuffer
Create the network writeByteBuffer
. This buffer contains encrypted outbound frames. These frames come from the write buffer that sends them through theSSLContext
for encryption to this buffer.- Parameters:
nioContext
-- Returns:
-