|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.grizzly.memory.ByteBufferWrapper
org.glassfish.grizzly.memory.ByteBufferManager.SmallByteBufferWrapper
protected final class ByteBufferManager.SmallByteBufferWrapper
ByteBufferWrapper implementation, which supports trimming. In
other words it's possible to return unused Buffer space to
pool.
| Field Summary |
|---|
| Fields inherited from class org.glassfish.grizzly.memory.ByteBufferWrapper |
|---|
allowBufferDispose, DEBUG_MODE, disposeStackTrace, visible |
| Method Summary | |
|---|---|
void |
dispose()
Notify the allocator that the space for this Buffer is no longer needed. |
void |
recycle()
|
protected ByteBufferWrapper |
wrapByteBuffer(java.nio.ByteBuffer byteBuffer)
|
| Methods inherited from class org.glassfish.grizzly.memory.ByteBufferWrapper |
|---|
allowBufferDispose, allowBufferDispose, asReadOnlyBuffer, capacity, clear, compact, compareTo, duplicate, equals, flip, get, get, get, get, get, get, getChar, getChar, getDouble, getDouble, getFloat, getFloat, getInt, getInt, getLong, getLong, getShort, getShort, hashCode, hasRemaining, isComposite, isDirect, 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, remaining, reset, rewind, shrink, slice, slice, split, toBufferArray, toBufferArray, toBufferArray, toBufferArray, toByteBuffer, toByteBuffer, toByteBufferArray, toByteBufferArray, toByteBufferArray, toByteBufferArray, toString, toStringContent, toStringContent, toStringContent, trim, tryDispose, underlying |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public void dispose()
Buffer
dispose in interface Bufferdispose in class ByteBufferWrapperpublic void recycle()
recycle in interface Cacheableprotected ByteBufferWrapper wrapByteBuffer(java.nio.ByteBuffer byteBuffer)
wrapByteBuffer in class ByteBufferWrapper
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||