org.infinispan.config
Class Configuration.ExpirationType
java.lang.Object
org.infinispan.config.AbstractConfigurationBean
org.infinispan.config.AbstractNamedCacheConfigurationBean
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
lifespan
protected Long lifespan
maxIdle
protected Long maxIdle
Configuration.ExpirationType
public Configuration.ExpirationType()
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.