net.sf.cindy.buffer
Interface BufferPool

All Known Implementing Classes:
DefaultBufferPool, NullBufferPool

public interface BufferPool

Buffer pool.

Version:
$id$
Author:
Roger Chen

Method Summary
 Buffer allocate(int capacity, boolean direct)
          Allocate buffer from pool.
 

Method Detail

allocate

Buffer allocate(int capacity,
                boolean direct)
Allocate buffer from pool.

Parameters:
capacity - capacity
direct - allocate direct buffer
Returns:
allocated buffer