Interface ByteBufferFactory

    • Method Detail

      • createReadBuffer

        ByteBuffer createReadBuffer​(NioContext nioContext)
        Create the ByteBuffer 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

        ByteBuffer createWriteBuffer​(NioContext nioContext)
        Create the ByteBuffer 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

        ByteBuffer createEncryptedReadBuffer​(NioContext nioContext)
        Create the network read ByteBuffer. This buffer contains encrypted frames read from the network. The SSLEngine decrypts frame and pass them over to the read buffer.
        Parameters:
        nioContext -
        Returns:
      • createEncryptedWriteBuffer

        ByteBuffer createEncryptedWriteBuffer​(NioContext nioContext)
        Create the network write ByteBuffer. This buffer contains encrypted outbound frames. These frames come from the write buffer that sends them through the SSLContext for encryption to this buffer.
        Parameters:
        nioContext -
        Returns: