public class ByteBufferPool extends Object
ByteBuffer to be used in parallel part uploads.| Constructor and Description |
|---|
ByteBufferPool(int capacity,
long bufferSize)
Creates given capacity pool of ByteBuffer with buffer size.
|
| Modifier and Type | Method and Description |
|---|---|
void |
put(ByteBuffer buffer)
Inserts the specified buffer into this pool, ignore if the pool is full.
|
ByteBuffer |
take()
Retrieves and removes the head of this pool, or returns new ByteBuffer if this pool is empty.
|
public ByteBufferPool(int capacity,
long bufferSize)
public ByteBuffer take()
public void put(ByteBuffer buffer)