Class ByteBufferPool.Bucket

  • Enclosing interface:
    ByteBufferPool

    @Deprecated(since="2021-05-27")
    public static class ByteBufferPool.Bucket
    extends java.lang.Object
    Deprecated.
    • Constructor Summary

      Constructors 
      Constructor Description
      Bucket​(ByteBufferPool pool, int capacity, int maxSize)
      Deprecated.
      Bucket​(ByteBufferPool pool, int capacity, int maxSize, java.util.function.IntConsumer memoryFunction)
      Deprecated.
       
    • Method Summary

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

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

      • Bucket

        @Deprecated
        public Bucket​(ByteBufferPool pool,
                      int capacity,
                      int maxSize)
        Deprecated.
      • Bucket

        public Bucket​(ByteBufferPool pool,
                      int capacity,
                      int maxSize,
                      java.util.function.IntConsumer memoryFunction)
        Deprecated.
    • Method Detail

      • acquire

        public java.nio.ByteBuffer acquire()
        Deprecated.
      • 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)
        Deprecated.
      • clear

        public void clear()
        Deprecated.
      • toString

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