Class NullByteBufferPool

  • All Implemented Interfaces:
    ByteBufferPool

    @Deprecated(since="2021-05-27")
    public class NullByteBufferPool
    extends java.lang.Object
    implements ByteBufferPool
    Deprecated.
    • Constructor Detail

      • NullByteBufferPool

        public NullByteBufferPool()
        Deprecated.
    • Method Detail

      • acquire

        public java.nio.ByteBuffer acquire​(int size,
                                           boolean direct)
        Deprecated.
        Description copied from interface: ByteBufferPool

        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.

        Specified by:
        acquire in interface ByteBufferPool
        Parameters:
        size - the size of the buffer
        direct - whether the buffer must be direct or not
        Returns:
        the requested buffer
        See Also:
        ByteBufferPool.release(ByteBuffer)