Top Description Fields Constructors Methods
org.xerial.snappy.pool

public final Class DefaultPoolFactory

extends Object
Class Inheritance

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

Modifier and TypeField and Description
private static volatile BufferPool
public static final String
DISABLE_CACHING_PROPERTY

Name of system property to disable use of CachingBufferPool by default.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static BufferPool

Returns:

The default instance to use.
getDefaultPool
()

public static void
setDefaultPool(BufferPool
The default instance to use. Must not be null.
pool
)

Sets the default instance to use.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

defaultPoolback to summary
private static volatile BufferPool defaultPool
DISABLE_CACHING_PROPERTYback to summary
public static final String DISABLE_CACHING_PROPERTY

Name of system property to disable use of CachingBufferPool by default.

Constructor Detail

DefaultPoolFactoryback to summary
public DefaultPoolFactory()

Method Detail

getDefaultPoolback to summary
public static BufferPool getDefaultPool()
Returns:BufferPool

The default instance to use.

setDefaultPoolback to summary
public static void setDefaultPool(BufferPool pool)

Sets the default instance to use.

Parameters
pool:BufferPool

The default instance to use. Must not be null.

See Also
getDefaultPool()