org.infinispan.config
Class Configuration.ExpirationType

java.lang.Object
  extended by org.infinispan.config.AbstractConfigurationBean
      extended by org.infinispan.config.AbstractNamedCacheConfigurationBean
          extended by org.infinispan.config.Configuration.ExpirationType
All Implemented Interfaces:
Serializable, Cloneable, CloneableConfigurationComponent, Configuration.ExpirationConfig, JAXBUnmarshallable
Enclosing class:
Configuration

public static class Configuration.ExpirationType
extends AbstractNamedCacheConfigurationBean
implements Configuration.ExpirationConfig

This element controls the default expiration settings for entries in the cache.

See Also:
Configuration reference, Serialized Form

Field Summary
protected  Long lifespan
           
protected  Long maxIdle
           
 
Fields inherited from class org.infinispan.config.AbstractNamedCacheConfigurationBean
cr
 
Fields inherited from class org.infinispan.config.AbstractConfigurationBean
EMPTY_PROPERTIES, log, overriddenConfigurationElements
 
Constructor Summary
Configuration.ExpirationType()
           
 
Method Summary
 void accept(ConfigurationBeanVisitor v)
           
 boolean equals(Object o)
           
 int hashCode()
           
 Configuration.ExpirationConfig lifespan(Long lifespan)
          Maximum lifespan of a cache entry, after which the entry is expired cluster-wide, in milliseconds.
 Configuration.ExpirationConfig maxIdle(Long maxIdle)
          Maximum idle time a cache entry will be maintained in the cache, in milliseconds.
 void setLifespan(Long lifespan)
           
 void setMaxIdle(Long maxIdle)
           
 
Methods inherited from class org.infinispan.config.AbstractNamedCacheConfigurationBean
clone, hasComponentStarted, inject
 
Methods inherited from class org.infinispan.config.AbstractConfigurationBean
testImmutability, toTypedProperties, toTypedProperties, uc, willUnmarshall
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

lifespan

protected Long lifespan

maxIdle

protected Long maxIdle
Constructor Detail

Configuration.ExpirationType

public Configuration.ExpirationType()
Method Detail

lifespan

public Configuration.ExpirationConfig lifespan(Long lifespan)
Description copied from interface: Configuration.ExpirationConfig
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 overriden on a per-entry bassi by using the Cache API.

Specified by:
lifespan in interface Configuration.ExpirationConfig

setLifespan

public void setLifespan(Long lifespan)

accept

public void accept(ConfigurationBeanVisitor v)

setMaxIdle

public void setMaxIdle(Long maxIdle)

maxIdle

public Configuration.ExpirationConfig maxIdle(Long maxIdle)
Description copied from interface: Configuration.ExpirationConfig
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 overriden on a per-entry bassi by using the Cache API.

Specified by:
maxIdle in interface Configuration.ExpirationConfig

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object


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