net.sf.cindy.buffer
Class NullBufferPool

java.lang.Object
  extended by net.sf.cindy.buffer.NullBufferPool
All Implemented Interfaces:
BufferPool

public class NullBufferPool
extends java.lang.Object
implements BufferPool

Null buffer pool. Always allocate new buffer.

Version:
$id$
Author:
Roger Chen

Constructor Summary
NullBufferPool()
           
 
Method Summary
 Buffer allocate(int capacity, boolean direct)
          Allocate buffer from pool.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NullBufferPool

public NullBufferPool()
Method Detail

allocate

public Buffer allocate(int capacity,
                       boolean direct)
Description copied from interface: BufferPool
Allocate buffer from pool.

Specified by:
allocate in interface BufferPool
Parameters:
capacity - capacity
direct - allocate direct buffer
Returns:
allocated buffer