Uses of Interface
org.terracotta.cache.CacheConfig

Packages that use CacheConfig
org.terracotta.cache   
org.terracotta.cache.serialization   
org.terracotta.cache.value   
org.terracotta.collections   
 

Uses of CacheConfig in org.terracotta.cache
 

Classes in org.terracotta.cache that implement CacheConfig
 class ImmutableConfig
          An immutable configuration that can be handed to a DistributedMap implementation.
 class MutableConfig
          Initialized with default configuration values.
 

Methods in org.terracotta.cache that return CacheConfig
 CacheConfig LocalCache.getConfig()
           
 CacheConfig TerracottaDistributedCache.getConfig()
           
 CacheConfig DistributedCache.getConfig()
          Get the current config for the cache.
 CacheConfig CacheConfig.setCapacityEvictionPolicyDataFactory(CapacityEvictionPolicyData.Factory factory)
          Set the CapacityEvictionPolicyData.Factory to use for creating CapacityEvictionPolicyData
 CacheConfig ImmutableConfig.setCapacityEvictionPolicyDataFactory(CapacityEvictionPolicyData.Factory type)
           
 CacheConfig MutableConfig.setCapacityEvictionPolicyDataFactory(CapacityEvictionPolicyData.Factory factory)
           
 CacheConfig ImmutableConfig.setLocalCacheEnabled(boolean localCacheEnabled)
           
 CacheConfig MutableConfig.setLocalCacheEnabled(boolean localCacheEnabled)
           
 CacheConfig CacheConfig.setLoggingEnabled(boolean loggingEnabled)
          Set distributed cache logging on or off.
 CacheConfig ImmutableConfig.setLoggingEnabled(boolean loggingEnabled)
           
 CacheConfig CacheConfig.setMaxTTISeconds(int maxTTISeconds)
           Set max "time to idle" in seconds.
 CacheConfig ImmutableConfig.setMaxTTISeconds(int maxTTISeconds)
           
 CacheConfig CacheConfig.setMaxTTLSeconds(int maxTTLSeconds)
           Set max "time to live" in seconds.
 CacheConfig ImmutableConfig.setMaxTTLSeconds(int maxTTLSeconds)
           
 CacheConfig CacheConfig.setName(String name)
          Set distributed cache name, used solely for logging and thread naming purposes.
 CacheConfig ImmutableConfig.setName(String name)
           
 CacheConfig CacheConfig.setOrphanEvictionEnabled(boolean orphanEvictionEnabled)
          Turn orphan eviction on or off.
 CacheConfig ImmutableConfig.setOrphanEvictionEnabled(boolean orphanEvictionEnabled)
           
 CacheConfig CacheConfig.setOrphanEvictionPeriod(int orphanEvictionPeriod)
          Set frequency at which orphan eviction will occur.
 CacheConfig ImmutableConfig.setOrphanEvictionPeriod(int orphanEvictionPeriod)
           
 CacheConfig CacheConfig.setServerMap(boolean serverMap)
          Sets whether to use server map or not for the backend
 CacheConfig ImmutableConfig.setServerMap(boolean serverMap)
           
 CacheConfig MutableConfig.setServerMap(boolean serverMap)
           
 CacheConfig ImmutableConfig.setTargetMaxBytesLocalHeap(long maxBytesLocalHeap)
           
 CacheConfig CacheConfig.setTargetMaxInMemoryCount(int targetMaxInMemoryCount)
           Set the current target for maximum in-memory number of entries.
 CacheConfig ImmutableConfig.setTargetMaxInMemoryCount(int targetMaxInMemoryCount)
           
 CacheConfig CacheConfig.setTargetMaxTotalCount(int targetMaxTotalCount)
           Set the current target for maximum total number of entries.
 CacheConfig ImmutableConfig.setTargetMaxTotalCount(int targetMaxTotalCount)
           
 

Methods in org.terracotta.cache with parameters of type CacheConfig
 int TimestampedValue.expiresAt(CacheConfig config)
          Determine when this value will expire based on the current configuration.
 boolean TimestampedValue.isExpired(int time, CacheConfig config)
          Determine whether this value will be expired at time based on the config.
 void TimestampedValue.markUsed(int usedAt, ClusteredLock lock, CacheConfig config)
          Mark this value as being used at the specified time.
 void MarkTimestampedValue.markUsed(Object key, int usedAt, ClusteredLock lock, CacheConfig config, com.terracotta.toolkit.collections.InternalClusteredMap map)
           
 

Constructors in org.terracotta.cache with parameters of type CacheConfig
ImmutableConfig(CacheConfig config)
          Constructs an immutable configuration as a value-based copy of the supplied configuration.
LocalCache(CacheConfig config)
          Construct a cache with the given configuration
TerracottaDistributedCache(CacheConfig config)
           
TerracottaDistributedCache(CacheConfig config, ClusteredMap<K,TimestampedValue<V>> terracottaMap)
           
 

Uses of CacheConfig in org.terracotta.cache.serialization
 

Methods in org.terracotta.cache.serialization with parameters of type CacheConfig
 int CustomLifespanSerializedEntry.expiresAt(CacheConfig config)
           
 

Uses of CacheConfig in org.terracotta.cache.value
 

Methods in org.terracotta.cache.value with parameters of type CacheConfig
 int AbstractStatelessTimestampedValue.expiresAt(CacheConfig config)
          Get the time at which this timestamp will become invalid.
 boolean AbstractStatelessTimestampedValue.isExpired(int atTime, CacheConfig config)
          Determine whether this timestamp is expired at the specified time.
 void AbstractStatelessTimestampedValue.markUsed(int usedAtTime, ClusteredLock lock, CacheConfig config)
           
 void AbstractStatelessTimestampedValue.markUsed(Object key, int usedAtTime, ClusteredLock lock, CacheConfig config, com.terracotta.toolkit.collections.InternalClusteredMap map)
          Mark this timestamp as being used and reset the idle timer (if in use).
 

Uses of CacheConfig in org.terracotta.collections
 

Fields in org.terracotta.collections declared as CacheConfig
protected  CacheConfig ConcurrentDistributedMap.cacheConfig
           
 

Methods in org.terracotta.collections that return CacheConfig
 CacheConfig ConcurrentDistributedServerMapParameters.getCacheConfig()
           
 

Methods in org.terracotta.collections with parameters of type CacheConfig
 ConcurrentDistributedServerMapParameters<K,L> ConcurrentDistributedServerMapParameters.cacheConfig(CacheConfig cacheConfigParam)
           
protected
<L> ClusteredMap<K,V>
ConcurrentDistributedServerMap.initBackend(CacheConfig cacheConfigParam, LockType lockType, GenericLockStrategy<L,? super K> lockStrategy, int concurrency)
           
 void ConcurrentDistributedServerMapParameters.setCacheConfig(CacheConfig cacheConfig)
           
 

Constructors in org.terracotta.collections with parameters of type CacheConfig
ConcurrentDistributedServerMap(CacheConfig cacheConfig, LockType lockType, GenericLockStrategy<L,? super K> lockStrategy, int concurrency)
           
ConcurrentDistributedServerMap(CacheConfig cacheConfig, LockType lockType, GenericLockStrategy<L,? super K> lockStrategy, int concurrency, boolean invalidateOnChange)
           
ConcurrentDistributedServerMap(CacheConfig cacheConfig, LockType lockType, GenericLockStrategy<L,? super K> lockStrategy, int concurrency, boolean invalidateOnChange, boolean deleteValueOnRemove)
           
ConcurrentDistributedServerMap(CacheConfig cacheConfig, LockType lockType, LockStrategy<? super K> lockStrategy)
          Creates a new EnterpriseConcurrentDistributedMap instance that allows the specification of the internal lock type that should be used when Terracotta DSO is active and the concurrency of internal data structures.
ConcurrentDistributedServerMap(CacheConfig cacheConfig, LockType lockType, LockStrategy<? super K> lockStrategy, int concurrency)
          Creates a new EnterpriseConcurrentDistributedMap instance that allows the specification of the internal lock type that should be used when Terracotta DSO is active and the concurrency of internal data structures.
EnterpriseConcurrentDistributedMap(CacheConfig cacheConfig, LockType lockType, GenericLockStrategy<L,? super K> lockStrategy, int concurrency)
           
EnterpriseConcurrentDistributedMap(CacheConfig cacheConfig, LockType lockType, GenericLockStrategy<L,? super K> lockStrategy, int concurrency, boolean invalidateOnChange)
           
EnterpriseConcurrentDistributedMap(CacheConfig cacheConfig, LockType lockType, GenericLockStrategy<L,? super K> lockStrategy, int concurrency, boolean invalidateOnChange, boolean deleteValueOnRemove)
           
EnterpriseConcurrentDistributedMap(CacheConfig cacheConfig, LockType lockType, LockStrategy<? super K> lockStrategy)
          Creates a new EnterpriseConcurrentDistributedMap instance that allows the specification of the internal lock type that should be used when Terracotta DSO is active and the concurrency of internal data structures.
EnterpriseConcurrentDistributedMap(CacheConfig cacheConfig, LockType lockType, LockStrategy<? super K> lockStrategy, int concurrency)
          Creates a new EnterpriseConcurrentDistributedMap instance that allows the specification of the internal lock type that should be used when Terracotta DSO is active and the concurrency of internal data structures.
 



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