Package org.xerial.snappy.pool
Class DefaultPoolFactory
- java.lang.Object
-
- org.xerial.snappy.pool.DefaultPoolFactory
-
public final class DefaultPoolFactory extends java.lang.ObjectManages implementation ofBufferPoolto use by default. Setting the system propertyDISABLE_CACHING_PROPERTYtotruewill cause theQuiescentBufferPoolto be used by default. Otherwise,CachingBufferPoolwill be used by default.setDefaultPool(BufferPool)can be used to explicitly control the implementation to use.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringDISABLE_CACHING_PROPERTYName of system property to disable use ofCachingBufferPoolby default.
-
Constructor Summary
Constructors Constructor Description DefaultPoolFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static BufferPoolgetDefaultPool()static voidsetDefaultPool(BufferPool pool)Sets the default instance to use.
-
-
-
Field Detail
-
DISABLE_CACHING_PROPERTY
public static final java.lang.String DISABLE_CACHING_PROPERTY
Name of system property to disable use ofCachingBufferPoolby default.- See Also:
- Constant Field Values
-
-
Method Detail
-
getDefaultPool
public static BufferPool getDefaultPool()
- Returns:
- The default instance to use.
-
setDefaultPool
public static void setDefaultPool(BufferPool pool)
Sets the default instance to use.- Parameters:
pool- The default instance to use. Must not benull.- See Also:
getDefaultPool()
-
-