org.terracotta.cache
Class CacheConfigFactory

java.lang.Object
  extended by org.terracotta.cache.CacheConfigFactory

public class CacheConfigFactory
extends Object

The CacheConfigFactory is the best and easiest place to start building a DistributedCache instance. It is used to create a new CacheConfig instance, which can be configured and then used to create a new DistributedCache.

This interface is starting kind of bare but we expect to add methods in the future that construct configs with combinations of frequently used parameters for different typical cache types.


Field Summary
static boolean DSO_ACTIVE
          Helpful property that says whether Terracotta Distributed Shared Objects is running or not by checking the tc.active property.
 
Method Summary
static CacheConfig newConfig()
          Construct a new cache configuration.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DSO_ACTIVE

public static final boolean DSO_ACTIVE
Helpful property that says whether Terracotta Distributed Shared Objects is running or not by checking the tc.active property.

Method Detail

newConfig

public static CacheConfig newConfig()
Construct a new cache configuration.

Returns:
A new configuration with all default values.


Copyright © 2010 Terracotta, Inc.. All Rights Reserved.