Class ByteBufferPool.Bucket

  • Enclosing interface:
    ByteBufferPool

    public static class ByteBufferPool.Bucket
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      Bucket​(int capacity, int maxSize)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.nio.ByteBuffer acquire()  
      void clear()  
      void release​(java.nio.ByteBuffer buffer)  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

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

      • Bucket

        public Bucket​(int capacity,
                      int maxSize)
    • Method Detail

      • acquire

        public java.nio.ByteBuffer acquire()
      • release

        public void release​(java.nio.ByteBuffer buffer)
      • clear

        public void clear()
      • toString

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