org.infinispan.config
Class Configuration.L1Type

java.lang.Object
  extended by org.infinispan.config.AbstractConfigurationBean
      extended by org.infinispan.config.AbstractNamedCacheConfigurationBean
          extended by 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

Field Summary
protected  Boolean enabled
           
protected  Long lifespan
           
protected  Boolean onRehash
           
 
Fields inherited from class org.infinispan.config.AbstractNamedCacheConfigurationBean
cr
 
Fields inherited from class org.infinispan.config.AbstractConfigurationBean
EMPTY_PROPERTIES, log, overriddenConfigurationElements
 
Constructor Summary
Configuration.L1Type()
           
 
Method Summary
 void accept(ConfigurationBeanVisitor v)
           
 Configuration.L1Config enabled(Boolean enabled)
          Toggle to enable/disable L1 cache.
 boolean equals(Object o)
           
 int hashCode()
           
 Configuration.L1Config lifespan(Long lifespan)
          Maximum lifespan of an entry placed in the L1 cache.
 Configuration.L1Config onRehash(Boolean onRehash)
          If true, entries removed due to a rehash will be moved to L1 rather than being removed altogether.
 Configuration.L1Config setEnabled(Boolean enabled)
           
 Configuration.L1Config setLifespan(Long lifespan)
           
 Configuration.L1Config setOnRehash(Boolean onRehash)
           
 
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

enabled

protected Boolean enabled

lifespan

protected Long lifespan

onRehash

protected Boolean onRehash
Constructor Detail

Configuration.L1Type

public Configuration.L1Type()
Method Detail

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.