Interface ByteBufferPool

All Superinterfaces:
AutoCloseable, Closeable
All Known Implementing Classes:
DefaultByteBufferPool, XnioByteBufferPool

public interface ByteBufferPool extends Closeable
A pool of byte buffers
Author:
Stuart Douglas
  • Method Details

    • allocate

      PooledByteBuffer allocate()
    • getArrayBackedPool

      ByteBufferPool getArrayBackedPool()
      If this byte buffer pool corresponds to an array backed pool then this will return itself. Otherwise it will return an array backed pool that contains buffers of the same size.
      Returns:
      An array backed pool of the same size
    • close

      void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
    • getBufferSize

      int getBufferSize()
    • isDirect

      boolean isDirect()