Class XnioByteBufferPool

  • All Implemented Interfaces:
    ByteBufferPool, java.io.Closeable, java.lang.AutoCloseable

    public class XnioByteBufferPool
    extends java.lang.Object
    implements ByteBufferPool
    Author:
    Stuart Douglas
    • Constructor Detail

      • XnioByteBufferPool

        public XnioByteBufferPool​(org.xnio.Pool<java.nio.ByteBuffer> pool)
    • Method Detail

      • getArrayBackedPool

        public ByteBufferPool getArrayBackedPool()
        Description copied from interface: ByteBufferPool
        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.
        Specified by:
        getArrayBackedPool in interface ByteBufferPool
        Returns:
        An array backed pool of the same size
      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface ByteBufferPool
        Specified by:
        close in interface java.io.Closeable