Interface ByteBufferPool

    • Method Detail

      • acquire

        ByteBuffer acquire​(int size,
                           boolean direct)
        Deprecated.

        Requests a ByteBuffer of the given size.

        The returned buffer may have a bigger capacity than the size being requested but it will have the limit set to the given size.

        Parameters:
        size - the size of the buffer
        direct - whether the buffer must be direct or not
        Returns:
        the requested buffer
        See Also:
        release(ByteBuffer)
      • newByteBuffer

        default ByteBuffer newByteBuffer​(int capacity,
                                         boolean direct)
        Deprecated.

        Creates a new ByteBuffer of the given capacity and the given directness.

        Parameters:
        capacity - the ByteBuffer capacity
        direct - the ByteBuffer directness
        Returns:
        a newly allocated ByteBuffer