Package org.xerial.snappy.pool
Class DefaultPoolFactory
java.lang.Object
org.xerial.snappy.pool.DefaultPoolFactory
Manages implementation of
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.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static BufferPool
static final String
Name of system property to disable use ofCachingBufferPool
by default. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic BufferPool
static void
setDefaultPool
(BufferPool pool) Sets the default instance to use.
-
Field Details
-
DISABLE_CACHING_PROPERTY
Name of system property to disable use ofCachingBufferPool
by default.- See Also:
-
defaultPool
-
-
Constructor Details
-
DefaultPoolFactory
public DefaultPoolFactory()
-
-
Method Details
-
getDefaultPool
- Returns:
- The default instance to use.
-
setDefaultPool
Sets the default instance to use.- Parameters:
pool
- The default instance to use. Must not benull
.- See Also:
-