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 BufferPoolstatic final StringName of system property to disable use ofCachingBufferPoolby default. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic BufferPoolstatic voidsetDefaultPool(BufferPool pool) Sets the default instance to use.
-
Field Details
-
DISABLE_CACHING_PROPERTY
Name of system property to disable use ofCachingBufferPoolby 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:
-