com.bigdata.journal
Interface BufferedDiskStrategy.Options

Enclosing class:
BufferedDiskStrategy

public static interface BufferedDiskStrategy.Options

Options for the BufferedDiskStrategy.

Version:
$Id: BufferedDiskStrategy.java 2265 2009-10-26 12:51:06Z thompsonbry $
Author:
Bryan Thompson

Field Summary
static String BUFFER_CAPACITY
          The capacity in bytes of the direct ByteBuffer instances allocated and managed by the DirectBufferPool (DEFAULT_BUFFER_CAPACITY).
static String DEFAULT_BUFFER_CAPACITY
          The default capacity of the allocated buffers.
static String DEFAULT_POOL_CAPACITY
          The default pool capacity (no limit).
static String POOL_CAPACITY
          The capacity of the DirectBufferPool is the maximum #of direct ByteBuffer instances that may reside in the pool (default "2147483647").
 

Field Detail

POOL_CAPACITY

static final String POOL_CAPACITY
The capacity of the DirectBufferPool is the maximum #of direct ByteBuffer instances that may reside in the pool (default "2147483647").

Note: Placing a limit on the pool size could cause threads to deadlock awaiting a direct buffer from the pool. For this reason is it good practice to use DirectBufferPool.acquire(long, TimeUnit) with a timeout.


DEFAULT_POOL_CAPACITY

static final String DEFAULT_POOL_CAPACITY
The default pool capacity (no limit).

See Also:
Constant Field Values

BUFFER_CAPACITY

static final String BUFFER_CAPACITY
The capacity in bytes of the direct ByteBuffer instances allocated and managed by the DirectBufferPool (DEFAULT_BUFFER_CAPACITY).


DEFAULT_BUFFER_CAPACITY

static final String DEFAULT_BUFFER_CAPACITY
The default capacity of the allocated buffers.

See Also:
Constant Field Values


Copyright © 2006-2009 SYSTAP, LLC. All Rights Reserved.