org.gudy.azureus2.core3.util
Class DirectByteBufferPoolReal
java.lang.Object
org.gudy.azureus2.core3.util.DirectByteBufferPool
org.gudy.azureus2.core3.util.DirectByteBufferPoolReal
public class DirectByteBufferPoolReal
- extends DirectByteBufferPool
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEBUG_TRACK_HANDEDOUT
protected static final boolean DEBUG_TRACK_HANDEDOUT
- See Also:
- Constant Field Values
DEBUG_PRINT_MEM
protected static final boolean DEBUG_PRINT_MEM
- See Also:
- Constant Field Values
DEBUG_PRINT_TIME
protected static final int DEBUG_PRINT_TIME
- See Also:
- Constant Field Values
DEBUG_HANDOUT_SIZES
protected static final boolean DEBUG_HANDOUT_SIZES
- See Also:
- Constant Field Values
DEBUG_FREE_SIZES
protected static final boolean DEBUG_FREE_SIZES
- See Also:
- Constant Field Values
MAX_SIZE
public static final int MAX_SIZE
DirectByteBufferPoolReal
protected DirectByteBufferPoolReal()
getBufferSupport
protected DirectByteBuffer getBufferSupport(byte _allocator,
int _length)
- Retrieve a buffer from the buffer pool of size at least
length, and no larger than DirectByteBufferPool.MAX_SIZE
- Specified by:
getBufferSupport
in class DirectByteBufferPool
returnBufferSupport
protected void returnBufferSupport(DirectByteBuffer ddb)
- Return the given buffer to the appropriate pool.
- Specified by:
returnBufferSupport
in class DirectByteBufferPool