Class ByteBufferPool.Bucket

  • Enclosing interface:
    ByteBufferPool

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

      • Bucket

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

      • acquire

        public java.nio.ByteBuffer acquire()
      • acquire

        @Deprecated
        public java.nio.ByteBuffer acquire​(boolean direct)
        Deprecated.
        use acquire() instead
        Parameters:
        direct - whether to create a direct buffer when none is available
        Returns:
        a ByteBuffer
      • 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