private static class NIOOutputStream.DirectBufferPool
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.nio.ByteBuffer[] |
bufferArray |
private static int |
MAX_POOL_SIZE |
private int |
r |
private static java.util.concurrent.atomic.AtomicIntegerFieldUpdater<NIOOutputStream.DirectBufferPool> |
rPos |
private int |
w |
Modifier | Constructor and Description |
---|---|
private |
DirectBufferPool() |
Modifier and Type | Method and Description |
---|---|
java.nio.ByteBuffer |
borrow() |
void |
borrow(java.nio.ByteBuffer[] dest,
int offset,
int length) |
private int |
indexOf(int rp) |
private static int |
pow2(int v) |
void |
release(java.nio.ByteBuffer[] src,
int offset,
int length) |
private volatile int r
private volatile int w
private static final java.util.concurrent.atomic.AtomicIntegerFieldUpdater<NIOOutputStream.DirectBufferPool> rPos
private static final int MAX_POOL_SIZE
private java.nio.ByteBuffer[] bufferArray