public final class DefaultPoolFactory extends Object
BufferPool
to use by default. Setting the system property DISABLE_CACHING_PROPERTY
to true
will
cause the QuiescentBufferPool
to be used by default. Otherwise, CachingBufferPool
will be used by default.
setDefaultPool(BufferPool)
can be used to explicitly control the implementation to use.Modifier and Type | Field and Description |
---|---|
static String |
DISABLE_CACHING_PROPERTY
Name of system property to disable use of
CachingBufferPool by default. |
Constructor and Description |
---|
DefaultPoolFactory() |
Modifier and Type | Method and Description |
---|---|
static BufferPool |
getDefaultPool() |
static void |
setDefaultPool(BufferPool pool)
Sets the default instance to use.
|
public static final String DISABLE_CACHING_PROPERTY
CachingBufferPool
by default.public static BufferPool getDefaultPool()
public static void setDefaultPool(BufferPool pool)
pool
- The default instance to use. Must not be null
.getDefaultPool()
Copyright © 2024 xerial.org. All rights reserved.