org.infinispan.config
Class Configuration.L1Type
java.lang.Object
org.infinispan.config.AbstractConfigurationBean
org.infinispan.config.AbstractNamedCacheConfigurationBean
org.infinispan.config.Configuration.L1Type
- All Implemented Interfaces:
- Serializable, Cloneable, CloneableConfigurationComponent, Configuration.L1Config, JAXBUnmarshallable
- Enclosing class:
- Configuration
public static class Configuration.L1Type
- extends AbstractNamedCacheConfigurationBean
- implements Configuration.L1Config
This element configures the L1 cache behavior in 'distributed' caches instances. In any other cache modes, this
element is ignored.
- See Also:
- Configuration reference,
Serialized Form
enabled
protected Boolean enabled
lifespan
protected Long lifespan
onRehash
protected Boolean onRehash
Configuration.L1Type
public Configuration.L1Type()
setEnabled
public Configuration.L1Config setEnabled(Boolean enabled)
enabled
public Configuration.L1Config enabled(Boolean enabled)
- Description copied from interface:
Configuration.L1Config
- Toggle to enable/disable L1 cache.
- Specified by:
enabled
in interface Configuration.L1Config
accept
public void accept(ConfigurationBeanVisitor v)
setLifespan
public Configuration.L1Config setLifespan(Long lifespan)
setOnRehash
public Configuration.L1Config setOnRehash(Boolean onRehash)
lifespan
public Configuration.L1Config lifespan(Long lifespan)
- Description copied from interface:
Configuration.L1Config
- Maximum lifespan of an entry placed in the L1 cache.
- Specified by:
lifespan
in interface Configuration.L1Config
onRehash
public Configuration.L1Config onRehash(Boolean onRehash)
- Description copied from interface:
Configuration.L1Config
- If true, entries removed due to a rehash will be moved to L1 rather than being removed
altogether.
- Specified by:
onRehash
in interface Configuration.L1Config
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.