deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official

org.deegree.coverage.raster.cache
Class ByteBufferPool

java.lang.Object
  extended by org.deegree.coverage.raster.cache.ByteBufferPool

public class ByteBufferPool
extends Object

The ByteBufferPool will be the central place for buffering byte buffers used for rasters. Currently only new byte buffers are created, no pooling is done.

Version:
$Revision: 22038 $, $Date: 2010-01-20 15:05:28 +0100 (Mi, 20 Jan 2010) $
Author:
Rutger Bezema, last edited by: $Author: aschmitz $

Field Summary
(package private) static long requestedMemory
           
 
Constructor Summary
ByteBufferPool()
           
 
Method Summary
static ByteBuffer allocate(int size, boolean directAllocation)
           
static ByteBuffer allocate(int size, boolean direct, boolean forCache)
          Frees up raster memory and than allocates the ByteBuffer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

requestedMemory

static long requestedMemory
Constructor Detail

ByteBufferPool

public ByteBufferPool()
Method Detail

allocate

public static ByteBuffer allocate(int size,
                                  boolean direct,
                                  boolean forCache)
Frees up raster memory and than allocates the ByteBuffer.

Parameters:
size -
direct -
forCache -
Returns:
an allocated byte buffer of the given size.

allocate

public static ByteBuffer allocate(int size,
                                  boolean directAllocation)
Parameters:
size -
directAllocation - if the allocation should be direct
Returns:
the newly created ByteBuffer.

deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official

an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org

]]>