protected final class ByteBufferManager.SmallByteBufferWrapper extends ByteBufferWrapper implements Cacheable
ByteBufferWrapper implementation, which supports trimming. In
other words it's possible to return unused Buffer space to
pool.allowBufferDispose, DEBUG_MODE, disposeStackTrace, visible| Modifier and Type | Method and Description |
|---|---|
void |
dispose()
Notify the allocator that the space for this Buffer is no
longer needed.
|
void |
recycle() |
protected ByteBufferWrapper |
wrapByteBuffer(ByteBuffer byteBuffer) |
allowBufferDispose, allowBufferDispose, array, arrayOffset, asReadOnlyBuffer, capacity, checkDispose, clear, compact, compareTo, dumpHex, duplicate, equals, flip, get, get, get, get, get, get, getChar, getChar, getDouble, getDouble, getFloat, getFloat, getInt, getInt, getLong, getLong, getShort, getShort, hasArray, hashCode, hasRemaining, isComposite, isDirect, isExternal, isReadOnly, limit, limit, mark, order, order, position, position, prepareDispose, prepend, put, put, put, put, put, put, put, put, put8BitString, putChar, putChar, putDouble, putDouble, putFloat, putFloat, putInt, putInt, putLong, putLong, putShort, putShort, release, remaining, reset, rewind, shrink, slice, slice, split, toBufferArray, toBufferArray, toBufferArray, toBufferArray, toByteBuffer, toByteBuffer, toByteBufferArray, toByteBufferArray, toByteBufferArray, toByteBufferArray, toString, toStringContent, toStringContent, toStringContent, trim, tryDispose, underlyingpublic void dispose()
Bufferdispose in interface Bufferdispose in class ByteBufferWrapperprotected ByteBufferWrapper wrapByteBuffer(ByteBuffer byteBuffer)
wrapByteBuffer in class ByteBufferWrapperCopyright © 2012-2017, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.