org.gudy.azureus2.core3.util
Class DirectByteBufferPoolReal

java.lang.Object
  extended by org.gudy.azureus2.core3.util.DirectByteBufferPool
      extended by org.gudy.azureus2.core3.util.DirectByteBufferPoolReal

public class DirectByteBufferPoolReal
extends DirectByteBufferPool


Field Summary
protected static boolean DEBUG_FREE_SIZES
           
protected static boolean DEBUG_HANDOUT_SIZES
           
protected static boolean DEBUG_PRINT_MEM
           
protected static int DEBUG_PRINT_TIME
           
protected static boolean DEBUG_TRACK_HANDEDOUT
           
static int MAX_SIZE
           
 
Constructor Summary
protected DirectByteBufferPoolReal()
           
 
Method Summary
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
protected  void returnBufferSupport(DirectByteBuffer ddb)
          Return the given buffer to the appropriate pool.
 
Methods inherited from class org.gudy.azureus2.core3.util.DirectByteBufferPool
getBuffer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

DirectByteBufferPoolReal

protected DirectByteBufferPoolReal()
Method Detail

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