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, FluentConfiguration.ClusteringConfig, FluentConfiguration.L1Config, JAXBUnmarshallable
Enclosing class:
Configuration

public static class Configuration.L1Type
extends AbstractNamedCacheConfigurationBean
implements FluentConfiguration.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  Integer invalidationThreshold
           
protected  Long lifespan
           
protected  Boolean onRehash
           
 
Fields inherited from class org.infinispan.config.AbstractNamedCacheConfigurationBean
cr
 
Fields inherited from class org.infinispan.config.AbstractConfigurationBean
overriddenConfigurationElements
 
Constructor Summary
Configuration.L1Type()
           
 
Method Summary
 void accept(ConfigurationBeanVisitor v)
           
 FluentConfiguration.AsyncConfig async()
           
 Configuration build()
           
 Configuration build()
           
 FluentConfiguration.TransactionConfig cacheStopTimeout(Integer cacheStopTimeout)
           
 FluentConfiguration.ClusteringConfig clustering()
           
 FluentConfiguration.ClusteringConfig clustering()
           
 FluentConfiguration.CustomInterceptorsConfig customInterceptors()
           
 FluentConfiguration.CustomInterceptorsConfig customInterceptors()
           
 FluentConfiguration.DataContainerConfig dataContainer()
           
 FluentConfiguration.DataContainerConfig dataContainer()
           
 FluentConfiguration.DeadlockDetectionConfig deadlockDetection()
          This method allows configuration of the deadlock detection.
 FluentConfiguration.DeadlockDetectionConfig deadlockDetection()
          This method allows configuration of the deadlock detection.
 FluentConfiguration.L1Config disable()
           
 FluentConfiguration.TransactionConfig eagerLockSingleNode(Boolean eagerLockSingleNode)
           
 boolean equals(Object o)
           
 FluentConfiguration.EvictionConfig eviction()
           
 FluentConfiguration.EvictionConfig eviction()
           
 FluentConfiguration.ExpirationConfig expiration()
           
 FluentConfiguration.ExpirationConfig expiration()
           
 Integer getInvalidationThreshold()
           
 Long getLifespan()
           
 FluentConfiguration.HashConfig hash()
           
 int hashCode()
           
 FluentConfiguration.IndexingConfig indexing()
          This method allows configuration of the indexing subsystem.
 FluentConfiguration.IndexingConfig indexing()
          This method allows configuration of the indexing subsystem.
 FluentConfiguration.L1Config invalidationThreshold(Integer threshold)
           Determines whether a multicast or a web of unicasts are used when performing L1 invalidations.
 FluentConfiguration.InvocationBatchingConfig invocationBatching()
          This method allows configuration of invocation batching.
 FluentConfiguration.InvocationBatchingConfig invocationBatching()
          This method allows configuration of invocation batching.
 Boolean isEnabled()
           
 Boolean isOnRehash()
           
 FluentConfiguration.JmxStatisticsConfig jmxStatistics()
          This method allows configuration of jmx statistics.
 FluentConfiguration.JmxStatisticsConfig jmxStatistics()
          This method allows configuration of jmx statistics.
 FluentConfiguration.L1Config l1()
           
 FluentConfiguration.L1Config lifespan(Long lifespan)
          Maximum lifespan of an entry placed in the L1 cache.
 FluentConfiguration.LoadersConfig loaders()
           
 FluentConfiguration.LoadersConfig loaders()
           
 FluentConfiguration.LockingConfig locking()
           
 FluentConfiguration.LockingConfig locking()
           
 FluentConfiguration.ClusteringConfig mode(Configuration.CacheMode mode)
           
 FluentConfiguration.L1Config onRehash(Boolean onRehash)
          If true, entries removed due to a rehash will be moved to L1 rather than being removed altogether.
 FluentConfiguration.RecoveryConfig recovery()
           
protected  org.infinispan.config.AbstractFluentConfigurationBean setConfiguration(Configuration config)
           
 FluentConfiguration.L1Config setEnabled(Boolean enabled)
          Deprecated. The visibility of this will be reduced
 void setInvalidationThreshold(Integer threshold)
           
 FluentConfiguration.L1Config setLifespan(Long lifespan)
          Deprecated. The visibility of this will be reduced, use lifespan(Long)
 FluentConfiguration.L1Config setOnRehash(Boolean onRehash)
          Deprecated. The visibility of this will be reduced, use onRehash(Boolean)
 FluentConfiguration.StateRetrievalConfig stateRetrieval()
           
 FluentConfiguration.StoreAsBinaryConfig storeAsBinary()
          This method allows configuration of lazy deserialization.
 FluentConfiguration.StoreAsBinaryConfig storeAsBinary()
          This method allows configuration of lazy deserialization.
 FluentConfiguration.SyncConfig sync()
           
 FluentConfiguration.TransactionConfig syncCommitPhase(Boolean syncCommitPhase)
           
 FluentConfiguration.TransactionConfig syncRollbackPhase(Boolean syncRollbackPhase)
           
 FluentConfiguration.TransactionConfig transaction()
           
 FluentConfiguration.TransactionConfig transaction()
           
 FluentConfiguration.TransactionConfig transactionManagerLookup(TransactionManagerLookup transactionManagerLookup)
           
 FluentConfiguration.TransactionConfig transactionManagerLookupClass(Class<? extends TransactionManagerLookup> transactionManagerLookupClass)
           
 FluentConfiguration.TransactionConfig transactionSynchronizationRegistryLookup(TransactionSynchronizationRegistryLookup transactionSynchronizationRegistryLookup)
           
 FluentConfiguration.UnsafeConfig unsafe()
           
 FluentConfiguration.UnsafeConfig unsafe()
           
 FluentConfiguration.TransactionConfig useEagerLocking(Boolean useEagerLocking)
           
 FluentConfiguration.TransactionConfig useSynchronization(Boolean useSynchronization)
           
 
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
 
Methods inherited from interface org.infinispan.config.FluentConfiguration.ClusteringConfig
async, hash, l1, mode, stateRetrieval, sync
 

Field Detail

enabled

protected Boolean enabled

lifespan

protected Long lifespan

onRehash

protected Boolean onRehash

invalidationThreshold

protected Integer invalidationThreshold
Constructor Detail

Configuration.L1Type

public Configuration.L1Type()
Method Detail

accept

public void accept(ConfigurationBeanVisitor v)

isEnabled

public Boolean isEnabled()

setEnabled

@Deprecated
public FluentConfiguration.L1Config setEnabled(Boolean enabled)
Deprecated. The visibility of this will be reduced


getLifespan

public Long getLifespan()

setLifespan

@Deprecated
public FluentConfiguration.L1Config setLifespan(Long lifespan)
Deprecated. The visibility of this will be reduced, use lifespan(Long)


lifespan

public FluentConfiguration.L1Config lifespan(Long lifespan)
Description copied from interface: FluentConfiguration.L1Config
Maximum lifespan of an entry placed in the L1 cache.

Specified by:
lifespan in interface FluentConfiguration.L1Config

isOnRehash

public Boolean isOnRehash()

setOnRehash

@Deprecated
public FluentConfiguration.L1Config setOnRehash(Boolean onRehash)
Deprecated. The visibility of this will be reduced, use onRehash(Boolean)


onRehash

public FluentConfiguration.L1Config onRehash(Boolean onRehash)
Description copied from interface: FluentConfiguration.L1Config
If true, entries removed due to a rehash will be moved to L1 rather than being removed altogether.

Specified by:
onRehash in interface FluentConfiguration.L1Config

invalidationThreshold

public FluentConfiguration.L1Config invalidationThreshold(Integer threshold)
Description copied from interface: FluentConfiguration.L1Config

Determines whether a multicast or a web of unicasts are used when performing L1 invalidations.

By default multicast will be used.

If the threshold is set to -1, then unicasts will always be used. If the threshold is set to 0, then multicast will be always be used.

Specified by:
invalidationThreshold in interface FluentConfiguration.L1Config
Parameters:
threshold - the threshold over which to use a multicast

setInvalidationThreshold

public void setInvalidationThreshold(Integer threshold)

getInvalidationThreshold

public Integer getInvalidationThreshold()

disable

public FluentConfiguration.L1Config disable()
Specified by:
disable in interface FluentConfiguration.L1Config

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object

locking

public FluentConfiguration.LockingConfig locking()

loaders

public FluentConfiguration.LoadersConfig loaders()

transaction

public FluentConfiguration.TransactionConfig transaction()

deadlockDetection

public FluentConfiguration.DeadlockDetectionConfig deadlockDetection()
This method allows configuration of the deadlock detection. When this method is called, it automatically enables deadlock detection. So, if you want it to be disabled, make sure you call FluentConfiguration.DeadlockDetectionConfig.disable()


customInterceptors

public FluentConfiguration.CustomInterceptorsConfig customInterceptors()

eviction

public FluentConfiguration.EvictionConfig eviction()

expiration

public FluentConfiguration.ExpirationConfig expiration()

clustering

public FluentConfiguration.ClusteringConfig clustering()

indexing

public FluentConfiguration.IndexingConfig indexing()
This method allows configuration of the indexing subsystem. When this method is called, it automatically enables indexing. So, if you want it to be disabled, make sure you call FluentConfiguration.IndexingConfig.disable()


dataContainer

public FluentConfiguration.DataContainerConfig dataContainer()

unsafe

public FluentConfiguration.UnsafeConfig unsafe()

jmxStatistics

public FluentConfiguration.JmxStatisticsConfig jmxStatistics()
This method allows configuration of jmx statistics. When this method is called, it automatically enables jmx statistics.


storeAsBinary

public FluentConfiguration.StoreAsBinaryConfig storeAsBinary()
This method allows configuration of lazy deserialization. When this method is called, it automatically enables lazy deserialization.


invocationBatching

public FluentConfiguration.InvocationBatchingConfig invocationBatching()
This method allows configuration of invocation batching. When this method is called, it automatically enables invocation batching.


build

public Configuration build()

locking

public FluentConfiguration.LockingConfig locking()

loaders

public FluentConfiguration.LoadersConfig loaders()

transaction

public FluentConfiguration.TransactionConfig transaction()

deadlockDetection

public FluentConfiguration.DeadlockDetectionConfig deadlockDetection()
This method allows configuration of the deadlock detection. When this method is called, it automatically enables deadlock detection. So, if you want it to be disabled, make sure you call FluentConfiguration.DeadlockDetectionConfig.disable()


customInterceptors

public FluentConfiguration.CustomInterceptorsConfig customInterceptors()

eviction

public FluentConfiguration.EvictionConfig eviction()

expiration

public FluentConfiguration.ExpirationConfig expiration()

clustering

public FluentConfiguration.ClusteringConfig clustering()

indexing

public FluentConfiguration.IndexingConfig indexing()
This method allows configuration of the indexing subsystem. When this method is called, it automatically enables indexing. So, if you want it to be disabled, make sure you call FluentConfiguration.IndexingConfig.disable()


dataContainer

public FluentConfiguration.DataContainerConfig dataContainer()

unsafe

public FluentConfiguration.UnsafeConfig unsafe()

jmxStatistics

public FluentConfiguration.JmxStatisticsConfig jmxStatistics()
This method allows configuration of jmx statistics. When this method is called, it automatically enables jmx statistics.


storeAsBinary

public FluentConfiguration.StoreAsBinaryConfig storeAsBinary()
This method allows configuration of lazy deserialization. When this method is called, it automatically enables lazy deserialization.


invocationBatching

public FluentConfiguration.InvocationBatchingConfig invocationBatching()
This method allows configuration of invocation batching. When this method is called, it automatically enables invocation batching.


async

public FluentConfiguration.AsyncConfig async()

sync

public FluentConfiguration.SyncConfig sync()

stateRetrieval

public FluentConfiguration.StateRetrievalConfig stateRetrieval()

l1

public FluentConfiguration.L1Config l1()

hash

public FluentConfiguration.HashConfig hash()

mode

public FluentConfiguration.ClusteringConfig mode(Configuration.CacheMode mode)

transactionManagerLookupClass

public FluentConfiguration.TransactionConfig transactionManagerLookupClass(Class<? extends TransactionManagerLookup> transactionManagerLookupClass)

transactionManagerLookup

public FluentConfiguration.TransactionConfig transactionManagerLookup(TransactionManagerLookup transactionManagerLookup)

transactionSynchronizationRegistryLookup

public FluentConfiguration.TransactionConfig transactionSynchronizationRegistryLookup(TransactionSynchronizationRegistryLookup transactionSynchronizationRegistryLookup)

syncCommitPhase

public FluentConfiguration.TransactionConfig syncCommitPhase(Boolean syncCommitPhase)

syncRollbackPhase

public FluentConfiguration.TransactionConfig syncRollbackPhase(Boolean syncRollbackPhase)

useEagerLocking

public FluentConfiguration.TransactionConfig useEagerLocking(Boolean useEagerLocking)

eagerLockSingleNode

public FluentConfiguration.TransactionConfig eagerLockSingleNode(Boolean eagerLockSingleNode)

cacheStopTimeout

public FluentConfiguration.TransactionConfig cacheStopTimeout(Integer cacheStopTimeout)

useSynchronization

public FluentConfiguration.TransactionConfig useSynchronization(Boolean useSynchronization)

recovery

public FluentConfiguration.RecoveryConfig recovery()

build

public Configuration build()

setConfiguration

protected org.infinispan.config.AbstractFluentConfigurationBean setConfiguration(Configuration config)

-->

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