org.gudy.azureus2.core3.util
Class DirectByteBufferPool

java.lang.Object
  extended by org.gudy.azureus2.core3.util.DirectByteBufferPool
Direct Known Subclasses:
DirectByteBufferPoolReal

public abstract class DirectByteBufferPool
extends java.lang.Object


Constructor Summary
DirectByteBufferPool()
           
 
Method Summary
static DirectByteBuffer getBuffer(byte allocator, int length)
           
protected abstract  DirectByteBuffer getBufferSupport(byte allocator, int length)
           
protected abstract  void returnBufferSupport(DirectByteBuffer buffer)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DirectByteBufferPool

public DirectByteBufferPool()
Method Detail

getBuffer

public static DirectByteBuffer getBuffer(byte allocator,
                                         int length)

getBufferSupport

protected abstract DirectByteBuffer getBufferSupport(byte allocator,
                                                     int length)

returnBufferSupport

protected abstract void returnBufferSupport(DirectByteBuffer buffer)