Class DefaultPoolFactory

java.lang.Object
org.xerial.snappy.pool.DefaultPoolFactory

public final class DefaultPoolFactory extends Object
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 Details

  • Constructor Details

    • DefaultPoolFactory

      public DefaultPoolFactory()
  • Method Details

    • 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 be null.
      See Also: