| Modifier and Type | Class and Description |
|---|---|
| public static interface |
| Modifier and Type | Field and Description |
|---|---|
| private final ReferenceCountedPooled. | |
| pack-priv boolean | |
| private volatile int | |
| private static final AtomicIntegerFieldUpdater | |
| private ByteBuffer | |
| private final PooledByteBuffer |
| Access | Constructor and Description |
|---|---|
| public | |
| public | ReferenceCountedPooled(PooledByteBuffer underlying, int referenceCount, ReferenceCountedPooled.
|
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Implements io. Closes this resource, relinquishing any underlying resources. |
| public PooledByteBuffer | |
| public PooledByteBuffer | |
| private void | |
| public ByteBuffer | |
| public void | |
| public boolean | |
| public boolean | |
| public String | |
| public boolean |
| freeNotifier | back to summary |
|---|---|
| private final ReferenceCountedPooled. | |
| mainFreed | back to summary |
|---|---|
| pack-priv boolean mainFreed | |
| referenceCount | back to summary |
|---|---|
private volatile int referenceCount
| |
| referenceCountUpdater | back to summary |
|---|---|
| private static final AtomicIntegerFieldUpdater<ReferenceCountedPooled> referenceCountUpdater | |
| slice | back to summary |
|---|---|
| private ByteBuffer slice | |
| underlying | back to summary |
|---|---|
| private final PooledByteBuffer underlying | |
| ReferenceCountedPooled | back to summary |
|---|---|
| public ReferenceCountedPooled(PooledByteBuffer underlying, int referenceCount) | |
| ReferenceCountedPooled | back to summary |
|---|---|
| public ReferenceCountedPooled(PooledByteBuffer underlying, int referenceCount, ReferenceCountedPooled. | |
| close | back to summary |
|---|---|
| public void close() Implements io. Doc from java. Closes this resource, relinquishing any underlying resources.
This method is invoked automatically on objects managed by the
| |
| createView | back to summary |
|---|---|
| public PooledByteBuffer createView(int viewSize) | |
| createView | back to summary |
|---|---|
| public PooledByteBuffer createView() | |
| freeInternal | back to summary |
|---|---|
| private void freeInternal() | |
| getBuffer | back to summary |
|---|---|
| public ByteBuffer getBuffer() throws IllegalStateException Implements io.
| |
| increaseReferenceCount | back to summary |
|---|---|
| public void increaseReferenceCount() | |
| isFreed | back to summary |
|---|---|
| public boolean isFreed() | |
| isOpen | back to summary |
|---|---|
| public boolean isOpen() Implements io.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| tryUnfree | back to summary |
|---|---|
| public boolean tryUnfree() | |
| Modifier and Type | Method and Description |
|---|---|
| public void |
| freed | back to summary |
|---|---|
| public void freed() | |