Interface ByteBufferPool

    • Method Detail

      • acquire

        ByteBuffer acquire​(int size)
        Borrow a buffer from the pool.
        Parameters:
        size - The minimum size and initial limit of the buffer.
        Returns:
        the buffer.
      • release

        void release​(ByteBuffer buffer)
        Returns a buffer to the pool.
        Parameters:
        buffer - the buffer.