Package io.minio
Class ByteBufferPool
java.lang.Object
io.minio.ByteBufferPool
Pool of
ByteBuffer to be used in parallel part uploads.-
Constructor Summary
ConstructorsConstructorDescriptionByteBufferPool(int capacity, long bufferSize) Creates given capacity pool of ByteBuffer with buffer size. -
Method Summary
Modifier and TypeMethodDescriptionvoidput(ByteBuffer buffer) Inserts the specified buffer into this pool, ignore if the pool is full.take()Retrieves and removes the head of this pool, or returns new ByteBuffer if this pool is empty.
-
Constructor Details
-
ByteBufferPool
public ByteBufferPool(int capacity, long bufferSize) Creates given capacity pool of ByteBuffer with buffer size.
-
-
Method Details
-
take
Retrieves and removes the head of this pool, or returns new ByteBuffer if this pool is empty. -
put
Inserts the specified buffer into this pool, ignore if the pool is full.
-