Class XnioBufferPoolAdaptor

  • All Implemented Interfaces:
    org.xnio.Pool<java.nio.ByteBuffer>

    public class XnioBufferPoolAdaptor
    extends java.lang.Object
    implements org.xnio.Pool<java.nio.ByteBuffer>
    Adaptor between a ByteBufferPool and an XNIO Pool
    Author:
    Stuart Douglas
    • Field Summary

      • Fields inherited from interface org.xnio.Pool

        DIRECT, HEAP
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.xnio.Pooled<java.nio.ByteBuffer> allocate()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • XnioBufferPoolAdaptor

        public XnioBufferPoolAdaptor​(ByteBufferPool byteBufferPool)
    • Method Detail

      • allocate

        public org.xnio.Pooled<java.nio.ByteBuffer> allocate()
        Specified by:
        allocate in interface org.xnio.Pool<java.nio.ByteBuffer>