Package org.eclipse.jetty.io
Class ByteBufferPool.Bucket
- java.lang.Object
-
- org.eclipse.jetty.io.ByteBufferPool.Bucket
-
- Enclosing interface:
- ByteBufferPool
@Deprecated(since="2021-05-27") public static class ByteBufferPool.Bucket extends Object
Deprecated.
-
-
Constructor Summary
Constructors Constructor Description Bucket(ByteBufferPool pool, int capacity, int maxSize)Deprecated.Bucket(ByteBufferPool pool, int capacity, int maxSize, IntConsumer memoryFunction)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ByteBufferacquire()Deprecated.ByteBufferacquire(boolean direct)Deprecated.useacquire()insteadvoidclear()Deprecated.voidrelease(ByteBuffer buffer)Deprecated.StringtoString()Deprecated.
-
-
-
Constructor Detail
-
Bucket
@Deprecated public Bucket(ByteBufferPool pool, int capacity, int maxSize)
Deprecated.
-
Bucket
public Bucket(ByteBufferPool pool, int capacity, int maxSize, IntConsumer memoryFunction)
Deprecated.
-
-
Method Detail
-
acquire
public ByteBuffer acquire()
Deprecated.
-
acquire
@Deprecated public ByteBuffer acquire(boolean direct)
Deprecated.useacquire()instead- Parameters:
direct- whether to create a direct buffer when none is available- Returns:
- a ByteBuffer
-
release
public void release(ByteBuffer buffer)
Deprecated.
-
clear
public void clear()
Deprecated.
-
-