|
||||||||||
| 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.DefaultMemoryManager.TrimAwareWrapper
public class DefaultMemoryManager.TrimAwareWrapper
ByteBufferWrapper implementation, which supports triming. In
other words it's possible to return unused Buffer space to
pool.
| Field Summary |
|---|
| Fields inherited from class org.glassfish.grizzly.memory.ByteBufferWrapper |
|---|
DEBUG_MODE, memoryManager, visible |
| Constructor Summary | |
|---|---|
DefaultMemoryManager.TrimAwareWrapper(ByteBufferManager memoryManager,
ByteBuffer underlyingByteBuffer)
|
|
| Method Summary | |
|---|---|
void |
trim()
Trim the buffer by reducing capacity to position, if possible. |
| Methods inherited from class org.glassfish.grizzly.memory.ByteBufferWrapper |
|---|
asReadOnlyBuffer, capacity, clear, compact, compareTo, contentAsString, dispose, duplicate, equals, flip, get, get, get, get, getChar, getChar, getDouble, getDouble, getFloat, getFloat, getInt, getInt, getLong, getLong, getShort, getShort, hashCode, hasRemaining, isReadOnly, limit, limit, mark, order, order, position, position, prepend, put, put, put, put, put, putChar, putChar, putDouble, putDouble, putFloat, putFloat, putInt, putInt, putLong, putLong, putShort, putShort, remaining, reset, rewind, slice, toString, underlying |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultMemoryManager.TrimAwareWrapper(ByteBufferManager memoryManager,
ByteBuffer underlyingByteBuffer)
| Method Detail |
|---|
public void trim()
Buffer
trim in interface Buffer<ByteBuffer>trim in class ByteBufferWrapper
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||