Class PooledAdaptor

  • All Implemented Interfaces:
    java.lang.AutoCloseable, org.xnio.Pooled<java.nio.ByteBuffer>

    public class PooledAdaptor
    extends java.lang.Object
    implements org.xnio.Pooled<java.nio.ByteBuffer>
    Author:
    Stuart Douglas
    • Method Detail

      • discard

        public void discard()
        Specified by:
        discard in interface org.xnio.Pooled<java.nio.ByteBuffer>
      • free

        public void free()
        Specified by:
        free in interface org.xnio.Pooled<java.nio.ByteBuffer>
      • getResource

        public java.nio.ByteBuffer getResource()
                                        throws java.lang.IllegalStateException
        Specified by:
        getResource in interface org.xnio.Pooled<java.nio.ByteBuffer>
        Throws:
        java.lang.IllegalStateException
      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface org.xnio.Pooled<java.nio.ByteBuffer>
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object