public static interface DirectBufferPool.Options
DirectBufferPool
.
Note: Since the DirectBufferPool.INSTANCE
is static all of these
options MUST be specified on the command line using -D
to
define the relevant property.
Note: The default configuration will never block but is not bounded in how many buffers it will allocate.
Modifier and Type | Field and Description |
---|---|
static String |
BUFFER_CAPACITY
The capacity in bytes of the direct
ByteBuffer instances
allocated and managed by the DirectBufferPool (DEFAULT_BUFFER_CAPACITY ). |
static String |
DEBUG
Option to use conservative assumptions about buffer release and to
report allocation stack traces for undesired events (double-release,
never released, etc).
|
static String |
DEFAULT_BUFFER_CAPACITY
The default capacity of the allocated buffers.
|
static String |
DEFAULT_DEBUG |
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"). |
static final String POOL_CAPACITY
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.
static final String DEFAULT_POOL_CAPACITY
static final String BUFFER_CAPACITY
ByteBuffer
instances
allocated and managed by the DirectBufferPool
(DEFAULT_BUFFER_CAPACITY
).static final String DEFAULT_BUFFER_CAPACITY
static final String DEBUG
static final String DEFAULT_DEBUG
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.