Class ByteBufferPool.Bucket
java.lang.Object
org.eclipse.jetty.io.ByteBufferPool.Bucket
- Enclosing interface:
ByteBufferPool
-
Constructor Summary
ConstructorsConstructorDescriptionBucket(ByteBufferPool pool, int capacity, int maxSize) Deprecated.Bucket(ByteBufferPool pool, int capacity, int maxSize, IntConsumer memoryFunction) -
Method Summary
-
Constructor Details
-
Bucket
Deprecated. -
Bucket
-
-
Method Details
-
acquire
-
acquire
Deprecated.useacquire()instead- Parameters:
direct- whether to create a direct buffer when none is available- Returns:
- a ByteBuffer
-
release
-
clear
public void clear() -
toString
-
acquire()instead