org.infinispan.configuration.cache
Class ExpirationConfiguration

java.lang.Object
  extended by org.infinispan.configuration.cache.ExpirationConfiguration

public class ExpirationConfiguration
extends Object

Controls the default expiration settings for entries in the cache.


Method Summary
 boolean equals(Object o)
           
 int hashCode()
           
 long lifespan()
          Maximum lifespan of a cache entry, after which the entry is expired cluster-wide, in milliseconds.
 long maxIdle()
          Maximum idle time a cache entry will be maintained in the cache, in milliseconds.
 boolean reaperEnabled()
          Determines whether the background reaper thread is enabled to test entries for expiration.
 String toString()
           
 long wakeUpInterval()
          Interval (in milliseconds) between subsequent runs to purge expired entries from memory and any cache stores.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

lifespan

public long lifespan()
Maximum lifespan of a cache entry, after which the entry is expired cluster-wide, in milliseconds. -1 means the entries never expire. Note that this can be overridden on a per-entry basis by using the Cache API.


maxIdle

public long maxIdle()
Maximum idle time a cache entry will be maintained in the cache, in milliseconds. If the idle time is exceeded, the entry will be expired cluster-wide. -1 means the entries never expire. Note that this can be overridden on a per-entry basis by using the Cache API.


reaperEnabled

public boolean reaperEnabled()
Determines whether the background reaper thread is enabled to test entries for expiration. Regardless of whether a reaper is used, entries are tested for expiration lazily when they are touched.


wakeUpInterval

public long wakeUpInterval()
Interval (in milliseconds) between subsequent runs to purge expired entries from memory and any cache stores. If you wish to disable the periodic eviction process altogether, set wakeupInterval to -1.


toString

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

-->

Copyright © 2012 JBoss, a division of Red Hat. All Rights Reserved.