Class ByteBufferPool.Bucket
java.lang.Object
org.eclipse.jetty.io.ByteBufferPool.Bucket
- Enclosing interface:
ByteBufferPool
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intprivate final AtomicLongprivate final intprivate final IntConsumerprivate final ByteBufferPoolprivate final Queue<ByteBuffer> private final AtomicInteger -
Constructor Summary
ConstructorsConstructorDescriptionBucket(ByteBufferPool pool, int capacity, int maxSize) Deprecated.Bucket(ByteBufferPool pool, int capacity, int maxSize, IntConsumer memoryFunction) -
Method Summary
-
Field Details
-
_queue
-
_pool
-
_capacity
private final int _capacity -
_maxSize
private final int _maxSize -
_size
-
_lastUpdate
-
_memoryFunction
-
-
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
-
resetUpdateTime
void resetUpdateTime() -
clear
public void clear() -
isEmpty
boolean isEmpty() -
size
int size() -
getLastUpdate
long getLastUpdate() -
toString
-
acquire()instead