org.infinispan.config
Class Configuration

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

public class Configuration
extends AbstractNamedCacheConfigurationBean

Encapsulates the configuration of a Cache. Configures the default cache which can be retrieved via CacheManager.getCache(). These default settings are also used as a starting point when configuring namedCaches, since the default settings are inherited by any named cache.

Since:
4.0
Author:
Manik Surtani (manik@jboss.org), Vladimir Blagojevic, Galder Zamarreño, Mircea.Markus@jboss.com
See Also:
Configuration reference, Serialized Form

Nested Class Summary
static class Configuration.AsyncType
          If this element is present, all communications are asynchronous, in that whenever a thread sends a message sent over the wire, it does not wait for an acknowledgment before returning.
static class Configuration.BooleanAttributeType
           
static class Configuration.CacheMode
          Cache replication mode.
static class Configuration.ClusteringType
          Defines clustered characteristics of the cache.
static class Configuration.ClusteringTypeAdapter
           
static class Configuration.CustomInterceptorPositionType
           
static class Configuration.CustomInterceptorsType
          Configures custom interceptors to be added to the cache.
static class Configuration.DataContainerType
          This element controls the data container for the cache.
static class Configuration.DeadlockDetectionType
          This element configures deadlock detection.
static class Configuration.EvictionType
          This element controls the eviction settings for the cache.
static class Configuration.ExpirationType
          This element controls the default expiration settings for entries in the cache.
static class Configuration.HashType
          Allows fine-tuning of rehashing characteristics.
static class Configuration.InvocationBatching
          Defines whether invocation batching is allowed in this cache instance, and sets up internals accordingly to allow use of this API.
static class Configuration.JmxStatistics
          This element specifies whether cache statistics are gathered and reported via JMX.
static class Configuration.L1Type
          This element configures the L1 cache behavior in 'distributed' caches instances.
static class Configuration.LazyDeserialization
          Deprecated. 
static class Configuration.LockingType
          Defines the local, in-VM locking and concurrency characteristics of the cache.
static class Configuration.QueryConfigurationBean
          Configures indexing of entries in the cache for searching.
static class Configuration.RecoveryType
          Recovery makes sure data in both transactional resource and Infinispan end up in a consistent state.
static class Configuration.StateRetrievalType
          Configures how state is retrieved when a new cache joins the cluster.
static class Configuration.StoreAsBinary
          A mechanism by which data is stored as a binary byte array.
static class Configuration.SyncType
          If this element is present, all communications are synchronous, in that whenever a thread sends a message sent over the wire, it blocks until it receives an acknowledgment from the recipient.
static class Configuration.TransactionType
          Defines transactional (JTA) characteristics of the cache.
static class Configuration.UnsafeType
          Allows you to tune various unsafe or non-standard characteristics.
 
Field Summary
protected  String name
           
 
Fields inherited from class org.infinispan.config.AbstractNamedCacheConfigurationBean
cr
 
Fields inherited from class org.infinispan.config.AbstractConfigurationBean
overriddenConfigurationElements
 
Constructor Summary
Configuration()
           
 
Method Summary
 void accept(ConfigurationBeanVisitor v)
           
 void applyOverrides(Configuration overrides)
           
 void assertValid()
           
 Configuration clone()
           
 boolean equals(Object o)
          Also see equalsIgnoreName(Object) for equality that does not consider the name of the configuration.
 boolean equalsIgnoreName(Object o)
          Same as equals(Object) but it ignores the getName() attribute in the comparison.
 FluentConfiguration fluent()
           
 CacheLoaderManagerConfig getCacheLoaderManagerConfig()
          Deprecated. Use getCacheLoaders(), isCacheLoaderShared() isFetchPersistentState(), isCacheLoaderPassivation() and isCacheLoaderPreload() instead
 List<CacheLoaderConfig> getCacheLoaders()
           
 Configuration.CacheMode getCacheMode()
           
 String getCacheModeString()
           
 int getCacheStopTimeout()
           
 ClassLoader getClassLoader()
           
 int getConcurrencyLevel()
           
 String getConsistentHashClass()
           
 List<CustomInterceptorConfig> getCustomInterceptors()
          Returns the CustomInterceptorConfig, if any, associated with this configuration object.
 DataContainer getDataContainer()
           
 String getDataContainerClass()
          Pluggable data container class which must implement DataContainer
 TypedProperties getDataContainerProperties()
           
 long getDeadlockDetectionSpinDuration()
           
 int getEvictionMaxEntries()
           
 EvictionStrategy getEvictionStrategy()
           
 EvictionThreadPolicy getEvictionThreadPolicy()
           
 long getEvictionWakeUpInterval()
          Deprecated. Use getExpirationWakeUpInterval()
 long getExpirationLifespan()
          Expiration lifespan, in milliseconds
 long getExpirationMaxIdle()
          Expiration max idle time, in milliseconds
 long getExpirationWakeUpInterval()
          Eviction thread wake up interval, in milliseconds.
 GlobalConfiguration getGlobalConfiguration()
           
 List<Grouper<?>> getGroupers()
           
 String getHashFunctionClass()
           
 TypedProperties getIndexingProperties()
           
 IsolationLevel getIsolationLevel()
           
 int getL1InvalidationThreshold()
           
 long getL1Lifespan()
           
 long getLockAcquisitionTimeout()
           
 String getName()
          Returns the name of the cache associated with this configuration.
 int getNumOwners()
           
 int getNumVirtualNodes()
           
 long getRehashRpcTimeout()
           
 long getRehashWaitTime()
           
 String getReplQueueClass()
           
 long getReplQueueInterval()
           
 int getReplQueueMaxElements()
           
 long getStateRetrievalInitialRetryWaitTime()
           
 long getStateRetrievalLogFlushTimeout()
           
 int getStateRetrievalMaxNonProgressingLogWrites()
           
 int getStateRetrievalNumRetries()
           
 int getStateRetrievalRetryWaitTimeIncreaseFactor()
           
 long getStateRetrievalTimeout()
           
 long getSyncReplTimeout()
           
 TransactionManagerLookup getTransactionManagerLookup()
           
 String getTransactionManagerLookupClass()
           
 String getTransactionRecoveryCacheName()
          Returns the name of the cache used in order to keep recovery information.
 TransactionSynchronizationRegistryLookup getTransactionSynchronizationRegistryLookup()
           
 int hashCode()
           
 void inject(ComponentRegistry cr)
           
 boolean isAlwaysProvideInMemoryState()
           
 boolean isCacheLoaderPassivation()
           
 boolean isCacheLoaderPreload()
           
 boolean isCacheLoaderShared()
           
 boolean isDeadlockDetectionEnabled()
           
 boolean isEagerLockingSingleNodeInUse()
          Returns true if and only if isUseEagerLocking(), isEagerLockSingleNode() and the cache is distributed.
 boolean isEagerLockSingleNode()
           
 boolean isEnableDeadlockDetection()
          Deprecated. Use isDeadlockDetectionEnabled() instead.
 boolean isExposeJmxStatistics()
           
 boolean isFetchInMemoryState()
           
 boolean isFetchPersistentState()
           
 boolean isGroupsEnabled()
           
 boolean isIndexingEnabled()
           
 boolean isIndexLocalOnly()
           
 boolean isInvocationBatchingEnabled()
           
 boolean isL1CacheEnabled()
           
 boolean isL1OnRehash()
           
 boolean isOnePhaseCommit()
           
 boolean isRehashEnabled()
           
 boolean isStateTransferEnabled()
           
 boolean isStoreAsBinary()
           
 boolean isStoreKeysAsBinary()
           
 boolean isStoreValuesAsBinary()
           
 boolean isSyncCommitPhase()
           
 boolean isSyncRollbackPhase()
           
 boolean isTransactionRecoveryEnabled()
          Returns true if transaction recovery information is collected.
 boolean isUnsafeUnreliableReturnValues()
           
 boolean isUseAsyncMarshalling()
           
 boolean isUseEagerLocking()
           
 boolean isUseLazyDeserialization()
          Deprecated. Use isStoreAsBinary()
 boolean isUseLockStriping()
           
 boolean isUseReplQueue()
           
 boolean isUseSynchronizationForTransactions()
          If enabled Infinispan enlists within transactions as a Synchronization.
 boolean isUsingCacheLoaders()
           
 boolean isWriteSkewCheck()
           
 void setAlwaysProvideInMemoryState(boolean alwaysProvideInMemoryState)
          Deprecated. Use FluentConfiguration.StateRetrievalConfig.alwaysProvideInMemoryState(Boolean) instead
 void setCacheLoaderManagerConfig(CacheLoaderManagerConfig cacheLoaderManagerConfig)
          Deprecated. Use FluentConfiguration.LoadersConfig.addCacheLoader(org.infinispan.loaders.CacheLoaderConfig...) instead
 void setCacheMode(Configuration.CacheMode cacheModeInt)
          Deprecated. Use FluentConfiguration.ClusteringConfig.mode(org.infinispan.config.Configuration.CacheMode) instead
 void setCacheMode(String cacheMode)
          Deprecated. Use FluentConfiguration.ClusteringConfig.mode(org.infinispan.config.Configuration.CacheMode) instead
 void setCacheModeString(String cacheMode)
          Deprecated. Use FluentConfiguration.ClusteringConfig.mode(org.infinispan.config.Configuration.CacheMode) instead
 Configuration setCacheStopTimeout(int cacheStopTimeout)
          Deprecated. Use FluentConfiguration.TransactionConfig.cacheStopTimeout(Integer) instead
 void setClassLoader(ClassLoader cl)
           
 void setConcurrencyLevel(int concurrencyLevel)
          Deprecated. Use FluentConfiguration.LockingConfig.concurrencyLevel(Integer) instead
 void setConsistentHashClass(String consistentHashClass)
          Deprecated. Use FluentConfiguration.HashConfig.consistentHashClass(Class) instead
 void setCustomInterceptors(List<CustomInterceptorConfig> customInterceptors)
          Deprecated. Use FluentConfiguration.CustomInterceptorCumulator.add(org.infinispan.interceptors.base.CommandInterceptor)
 void setDeadlockDetectionSpinDuration(long eagerDeadlockSpinDuration)
          Deprecated. Use FluentConfiguration.DeadlockDetectionConfig.spinDuration(Long) instead
 void setEagerLockSingleNode(boolean eagerLockSingleNode)
          Deprecated. Use FluentConfiguration.TransactionConfig.eagerLockSingleNode(Boolean) instead
 void setEnableDeadlockDetection(boolean useEagerDeadlockDetection)
          Deprecated. Use AbstractFluentConfigurationBean.deadlockDetection() instead
 void setEvictionMaxEntries(int evictionMaxEntries)
          Deprecated. Use FluentConfiguration.EvictionConfig.maxEntries(Integer) instead
 void setEvictionStrategy(EvictionStrategy evictionStrategy)
          Deprecated. Use FluentConfiguration.EvictionConfig.strategy(org.infinispan.eviction.EvictionStrategy) instead
 void setEvictionStrategy(String eStrategy)
          Deprecated. Use FluentConfiguration.EvictionConfig.strategy(org.infinispan.eviction.EvictionStrategy) instead
 void setEvictionThreadPolicy(EvictionThreadPolicy policy)
          Deprecated. Use FluentConfiguration.EvictionConfig.threadPolicy(org.infinispan.eviction.EvictionThreadPolicy) instead
 void setEvictionThreadPolicy(String policy)
          Deprecated. Use FluentConfiguration.EvictionConfig.threadPolicy(org.infinispan.eviction.EvictionThreadPolicy) instead
 void setEvictionWakeUpInterval(long evictionWakeUpInterval)
          Deprecated. Use FluentConfiguration.ExpirationConfig.wakeUpInterval(Long) instead
 void setExpirationLifespan(long expirationLifespan)
          Deprecated. Use FluentConfiguration.ExpirationConfig.lifespan(Long) instead
 void setExpirationMaxIdle(long expirationMaxIdle)
          Deprecated. Use FluentConfiguration.ExpirationConfig.maxIdle(Long) instead
 void setExposeJmxStatistics(boolean useMbean)
          Deprecated. Use AbstractFluentConfigurationBean.jmxStatistics() instead
 void setFetchInMemoryState(boolean fetchInMemoryState)
          Deprecated. Use FluentConfiguration.StateRetrievalConfig.fetchInMemoryState(Boolean) instead
 void setGlobalConfiguration(GlobalConfiguration gc)
           
 void setHashFunctionClass(String hashFunctionClass)
          Deprecated. Use FluentConfiguration.HashConfig.hashFunctionClass(Class) instead
 void setIndexingEnabled(boolean enabled)
          Deprecated. Use AbstractFluentConfigurationBean.indexing() instead
 void setIndexLocalOnly(boolean indexLocalOnly)
          Deprecated. Use FluentConfiguration.IndexingConfig.indexLocalOnly(Boolean) instead
 void setInvocationBatchingEnabled(boolean enabled)
          Deprecated. Use AbstractFluentConfigurationBean.invocationBatching() instead
 void setIsolationLevel(IsolationLevel isolationLevel)
          Deprecated. Use FluentConfiguration.LockingConfig.isolationLevel(org.infinispan.util.concurrent.IsolationLevel) instead
 void setIsolationLevel(String isolationLevel)
          Deprecated. Use FluentConfiguration.LockingConfig.isolationLevel(org.infinispan.util.concurrent.IsolationLevel) instead
 void setL1CacheEnabled(boolean l1CacheEnabled)
          Deprecated. Use AbstractFluentConfigurationBean.l1() instead
 void setL1InvalidationThreshold(int threshold)
          Deprecated. Use FluentConfiguration.L1Config.invalidationThreshold(Integer) instead
 void setL1Lifespan(long l1Lifespan)
          Deprecated. Use FluentConfiguration.L1Config.lifespan(Long) instead
 void setL1OnRehash(boolean l1OnRehash)
          Deprecated. Use FluentConfiguration.L1Config.onRehash(Boolean) instead
 void setLockAcquisitionTimeout(long lockAcquisitionTimeout)
          Deprecated. Use FluentConfiguration.LockingConfig.lockAcquisitionTimeout(Long) instead
 void setLockAcquisitionTimeout(long lockAcquisitionTimeout, TimeUnit timeUnit)
          Deprecated. Use FluentConfiguration.LockingConfig.lockAcquisitionTimeout(Long) instead
 void setNumOwners(int numOwners)
          Deprecated. Use FluentConfiguration.HashConfig.numOwners(Integer) instead
 void setRehashEnabled(boolean rehashEnabled)
          Deprecated. Use FluentConfiguration.HashConfig.rehashEnabled(Boolean) instead
 void setRehashRpcTimeout(long rehashRpcTimeout)
          Deprecated. Use FluentConfiguration.HashConfig.rehashRpcTimeout(Long) instead
 void setRehashWaitTime(long rehashWaitTime)
          Deprecated. Use FluentConfiguration.HashConfig.rehashWait(Long) instead
 void setReplQueueClass(String classname)
          Deprecated. Use FluentConfiguration.AsyncConfig.replQueueClass(Class) instead
 void setReplQueueInterval(long replQueueInterval)
          Deprecated. Use FluentConfiguration.AsyncConfig.replQueueInterval(Long) instead
 void setReplQueueInterval(long replQueueInterval, TimeUnit timeUnit)
          Deprecated. Use FluentConfiguration.AsyncConfig.replQueueInterval(Long) instead
 void setReplQueueMaxElements(int replQueueMaxElements)
          Deprecated. Use FluentConfiguration.AsyncConfig.replQueueMaxElements(Integer) instead
 void setStateRetrievalInitialRetryWaitTime(long initialRetryWaitTime)
          Deprecated. Use FluentConfiguration.StateRetrievalConfig.initialRetryWaitTime(Long) instead
 void setStateRetrievalInitialRetryWaitTime(long initialRetryWaitTime, TimeUnit timeUnit)
          Deprecated. Use FluentConfiguration.StateRetrievalConfig.initialRetryWaitTime(Long) instead
 void setStateRetrievalLogFlushTimeout(long logFlushTimeout)
          Deprecated. Use FluentConfiguration.StateRetrievalConfig.logFlushTimeout(Long) instead
 void setStateRetrievalLogFlushTimeout(long logFlushTimeout, TimeUnit timeUnit)
          Deprecated. Use FluentConfiguration.StateRetrievalConfig.logFlushTimeout(Long) instead
 void setStateRetrievalMaxNonProgressingLogWrites(int maxNonProgressingLogWrites)
          Deprecated. Use FluentConfiguration.StateRetrievalConfig.maxNonProgressingLogWrites(Integer) instead
 void setStateRetrievalNumRetries(int numRetries)
          Deprecated. Use FluentConfiguration.StateRetrievalConfig.numRetries(Integer) instead
 void setStateRetrievalRetryWaitTimeIncreaseFactor(int retryWaitTimeIncreaseFactor)
          Deprecated. Use FluentConfiguration.StateRetrievalConfig.retryWaitTimeIncreaseFactor(Integer) instead
 void setStateRetrievalTimeout(long stateRetrievalTimeout)
          Deprecated. Use FluentConfiguration.StateRetrievalConfig.timeout(Long) instead
 void setStateRetrievalTimeout(long stateRetrievalTimeout, TimeUnit timeUnit)
          Deprecated. Use FluentConfiguration.StateRetrievalConfig.timeout(Long) instead
 void setSyncCommitPhase(boolean syncCommitPhase)
          Deprecated. Use FluentConfiguration.TransactionConfig.syncCommitPhase(Boolean) instead
 void setSyncReplTimeout(long syncReplTimeout)
          Deprecated. Use FluentConfiguration.SyncConfig.replTimeout(Long) instead
 void setSyncReplTimeout(long syncReplTimeout, TimeUnit timeUnit)
          Deprecated. Use FluentConfiguration.SyncConfig.replTimeout(Long) instead
 void setSyncRollbackPhase(boolean syncRollbackPhase)
          Deprecated. Use FluentConfiguration.TransactionConfig.syncRollbackPhase(Boolean) instead
 void setTransactionManagerLookup(TransactionManagerLookup transactionManagerLookup)
          Deprecated. Use FluentConfiguration.TransactionConfig.transactionManagerLookup(TransactionManagerLookup) instead
 void setTransactionManagerLookupClass(String transactionManagerLookupClass)
          Deprecated. Use FluentConfiguration.TransactionConfig.transactionManagerLookupClass(Class) instead
 void setUnsafeUnreliableReturnValues(boolean unsafeUnreliableReturnValues)
          Deprecated. Use FluentConfiguration.UnsafeConfig.unreliableReturnValues(Boolean) instead
 void setUseAsyncMarshalling(boolean useAsyncMarshalling)
          Deprecated. Use FluentConfiguration.AsyncConfig.asyncMarshalling(Boolean) instead
 void setUseEagerLocking(boolean useEagerLocking)
          Deprecated. Use FluentConfiguration.TransactionConfig.useEagerLocking(Boolean) instead
 void setUseLazyDeserialization(boolean useLazyDeserialization)
          Deprecated. Use AbstractFluentConfigurationBean.storeAsBinary() instead
 void setUseLockStriping(boolean useLockStriping)
          Deprecated. Use FluentConfiguration.LockingConfig.useLockStriping(Boolean) instead
 void setUseReplQueue(boolean useReplQueue)
          Deprecated. Use FluentConfiguration.AsyncConfig.useReplQueue(Boolean) instead
 void setWriteSkewCheck(boolean writeSkewCheck)
          Deprecated. Use FluentConfiguration.LockingConfig.writeSkewCheck(Boolean) instead
 String toXmlString()
          Converts this configuration instance to an XML representation containing the current settings.
 
Methods inherited from class org.infinispan.config.AbstractNamedCacheConfigurationBean
hasComponentStarted
 
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

name

protected String name
Constructor Detail

Configuration

public Configuration()
Method Detail

applyOverrides

public void applyOverrides(Configuration overrides)

inject

public void inject(ComponentRegistry cr)
Overrides:
inject in class AbstractNamedCacheConfigurationBean

fluent

public FluentConfiguration fluent()

getGlobalConfiguration

public GlobalConfiguration getGlobalConfiguration()

setGlobalConfiguration

public void setGlobalConfiguration(GlobalConfiguration gc)

getName

public String getName()
Returns the name of the cache associated with this configuration.


getClassLoader

public ClassLoader getClassLoader()

setClassLoader

public void setClassLoader(ClassLoader cl)

isStateTransferEnabled

public boolean isStateTransferEnabled()

getDeadlockDetectionSpinDuration

public long getDeadlockDetectionSpinDuration()

setDeadlockDetectionSpinDuration

@Deprecated
public void setDeadlockDetectionSpinDuration(long eagerDeadlockSpinDuration)
Deprecated. Use FluentConfiguration.DeadlockDetectionConfig.spinDuration(Long) instead

Time period that determines how often is lock acquisition attempted within maximum time allowed to acquire a particular lock

Parameters:
eagerDeadlockSpinDuration -

isEnableDeadlockDetection

@Deprecated
public boolean isEnableDeadlockDetection()
Deprecated. Use isDeadlockDetectionEnabled() instead.


isDeadlockDetectionEnabled

public boolean isDeadlockDetectionEnabled()

setEnableDeadlockDetection

@Deprecated
public void setEnableDeadlockDetection(boolean useEagerDeadlockDetection)
Deprecated. Use AbstractFluentConfigurationBean.deadlockDetection() instead

Toggle to enable/disable deadlock detection

Parameters:
useEagerDeadlockDetection -

setUseLockStriping

@Deprecated
public void setUseLockStriping(boolean useLockStriping)
Deprecated. Use FluentConfiguration.LockingConfig.useLockStriping(Boolean) instead

If true, a pool of shared locks is maintained for all entries that need to be locked. Otherwise, a lock is created per entry in the cache. Lock striping helps control memory footprint but may reduce concurrency in the system.

Parameters:
useLockStriping -

isUseLockStriping

public boolean isUseLockStriping()

isUnsafeUnreliableReturnValues

public boolean isUnsafeUnreliableReturnValues()

setUnsafeUnreliableReturnValues

@Deprecated
public void setUnsafeUnreliableReturnValues(boolean unsafeUnreliableReturnValues)
Deprecated. Use FluentConfiguration.UnsafeConfig.unreliableReturnValues(Boolean) instead

Toggle to enable/disable return value fetching

Parameters:
unsafeUnreliableReturnValues -

setRehashRpcTimeout

@Deprecated
public void setRehashRpcTimeout(long rehashRpcTimeout)
Deprecated. Use FluentConfiguration.HashConfig.rehashRpcTimeout(Long) instead

Rehashing timeout

Parameters:
rehashRpcTimeout -

getRehashRpcTimeout

public long getRehashRpcTimeout()

isWriteSkewCheck

public boolean isWriteSkewCheck()

setWriteSkewCheck

@Deprecated
public void setWriteSkewCheck(boolean writeSkewCheck)
Deprecated. Use FluentConfiguration.LockingConfig.writeSkewCheck(Boolean) instead

This setting is only applicable in the case of REPEATABLE_READ. When write skew check is set to false, if the writer at commit time discovers that the working entry and the underlying entry have different versions, the working entry will overwrite the underlying entry. If true, such version conflict - known as a write-skew - will throw an Exception.

Parameters:
writeSkewCheck -

getConcurrencyLevel

public int getConcurrencyLevel()

setConcurrencyLevel

@Deprecated
public void setConcurrencyLevel(int concurrencyLevel)
Deprecated. Use FluentConfiguration.LockingConfig.concurrencyLevel(Integer) instead

Concurrency level for lock containers. Adjust this value according to the number of concurrent threads interating with Infinispan. Similar to the concurrencyLevel tuning parameter seen in the JDK's ConcurrentHashMap.

Parameters:
concurrencyLevel -

setReplQueueMaxElements

@Deprecated
public void setReplQueueMaxElements(int replQueueMaxElements)
Deprecated. Use FluentConfiguration.AsyncConfig.replQueueMaxElements(Integer) instead

If useReplQueue is set to true, this attribute can be used to trigger flushing of the queue when it reaches a specific threshold.

Parameters:
replQueueMaxElements -

setReplQueueInterval

@Deprecated
public void setReplQueueInterval(long replQueueInterval)
Deprecated. Use FluentConfiguration.AsyncConfig.replQueueInterval(Long) instead

If useReplQueue is set to true, this attribute controls how often the asynchronous thread used to flush the replication queue runs. This should be a positive integer which represents thread wakeup time in milliseconds.

Parameters:
replQueueInterval -

setReplQueueInterval

@Deprecated
public void setReplQueueInterval(long replQueueInterval,
                                            TimeUnit timeUnit)
Deprecated. Use FluentConfiguration.AsyncConfig.replQueueInterval(Long) instead


setReplQueueClass

@Deprecated
public void setReplQueueClass(String classname)
Deprecated. Use FluentConfiguration.AsyncConfig.replQueueClass(Class) instead

This overrides the replication queue implementation class. Overriding the default allows you to add behavior to the queue, typically by subclassing the default implementation.

Parameters:
classname -

setExposeJmxStatistics

@Deprecated
public void setExposeJmxStatistics(boolean useMbean)
Deprecated. Use AbstractFluentConfigurationBean.jmxStatistics() instead


setInvocationBatchingEnabled

@Deprecated
public void setInvocationBatchingEnabled(boolean enabled)
Deprecated. Use AbstractFluentConfigurationBean.invocationBatching() instead

Enables invocation batching if set to true. You still need to use Cache.startBatch() and Cache.endBatch(boolean) to demarcate the start and end of batches.

Parameters:
enabled - if true, batching is enabled.
Since:
4.0

setFetchInMemoryState

@Deprecated
public void setFetchInMemoryState(boolean fetchInMemoryState)
Deprecated. Use FluentConfiguration.StateRetrievalConfig.fetchInMemoryState(Boolean) instead

If true, this will cause the cache to ask neighboring caches for state when it starts up, so the cache starts 'warm', although it will impact startup time.

Parameters:
fetchInMemoryState -

setAlwaysProvideInMemoryState

@Deprecated
public void setAlwaysProvideInMemoryState(boolean alwaysProvideInMemoryState)
Deprecated. Use FluentConfiguration.StateRetrievalConfig.alwaysProvideInMemoryState(Boolean) instead

If true, this will allow the cache to provide in-memory state to a neighbor, even if the cache is not configured to fetch state from its neighbors (fetchInMemoryState is false)

Parameters:
alwaysProvideInMemoryState -

setLockAcquisitionTimeout

@Deprecated
public void setLockAcquisitionTimeout(long lockAcquisitionTimeout)
Deprecated. Use FluentConfiguration.LockingConfig.lockAcquisitionTimeout(Long) instead

Maximum time to attempt a particular lock acquisition

Parameters:
lockAcquisitionTimeout -

setLockAcquisitionTimeout

@Deprecated
public void setLockAcquisitionTimeout(long lockAcquisitionTimeout,
                                                 TimeUnit timeUnit)
Deprecated. Use FluentConfiguration.LockingConfig.lockAcquisitionTimeout(Long) instead

Maximum time to attempt a particular lock acquisition

Parameters:
lockAcquisitionTimeout -
timeUnit -

setSyncReplTimeout

@Deprecated
public void setSyncReplTimeout(long syncReplTimeout)
Deprecated. Use FluentConfiguration.SyncConfig.replTimeout(Long) instead

This is the timeout (in ms) used to wait for an acknowledgment when making a remote call, after which the call is aborted and an exception is thrown.

Parameters:
syncReplTimeout -

setSyncReplTimeout

@Deprecated
public void setSyncReplTimeout(long syncReplTimeout,
                                          TimeUnit timeUnit)
Deprecated. Use FluentConfiguration.SyncConfig.replTimeout(Long) instead

This is the timeout used to wait for an acknowledgment when making a remote call, after which the call is aborted and an exception is thrown.

Parameters:
syncReplTimeout -
timeUnit -

setCacheMode

@Deprecated
public void setCacheMode(Configuration.CacheMode cacheModeInt)
Deprecated. Use FluentConfiguration.ClusteringConfig.mode(org.infinispan.config.Configuration.CacheMode) instead

Cache mode. For distribution, set mode to either 'd', 'dist' or 'distribution'. For replication, use either 'r', 'repl' or 'replication'. Finally, for invalidation, 'i', 'inv' or 'invalidation'. If the cache mode is set to 'l' or 'local', the cache in question will not support clustering even if its cache manager does. When no transport is enabled, the default is 'local' (instead of 'dist').


setCacheMode

@Deprecated
public void setCacheMode(String cacheMode)
Deprecated. Use FluentConfiguration.ClusteringConfig.mode(org.infinispan.config.Configuration.CacheMode) instead

Cache mode. For distribution, set mode to either 'd', 'dist' or 'distribution'. For replication, use either 'r', 'repl' or 'replication'. Finally, for invalidation, 'i', 'inv' or 'invalidation'. If the cache mode is set to 'l' or 'local', the cache in question will not support clustering even if its cache manager does. When no transport is enabled, the default is 'local' (instead of 'dist').


getCacheModeString

public String getCacheModeString()

setCacheModeString

@Deprecated
public void setCacheModeString(String cacheMode)
Deprecated. Use FluentConfiguration.ClusteringConfig.mode(org.infinispan.config.Configuration.CacheMode) instead


getDataContainerClass

public String getDataContainerClass()
Pluggable data container class which must implement DataContainer


getDataContainer

public DataContainer getDataContainer()

getDataContainerProperties

public TypedProperties getDataContainerProperties()

getEvictionWakeUpInterval

public long getEvictionWakeUpInterval()
Deprecated. Use getExpirationWakeUpInterval()


setEvictionWakeUpInterval

@Deprecated
public void setEvictionWakeUpInterval(long evictionWakeUpInterval)
Deprecated. Use FluentConfiguration.ExpirationConfig.wakeUpInterval(Long) instead


getEvictionStrategy

public EvictionStrategy getEvictionStrategy()

setEvictionStrategy

@Deprecated
public void setEvictionStrategy(EvictionStrategy evictionStrategy)
Deprecated. Use FluentConfiguration.EvictionConfig.strategy(org.infinispan.eviction.EvictionStrategy) instead

Eviction strategy. Available options are 'UNORDERED', 'FIFO', 'LRU', 'LIRS' and 'NONE' (to disable eviction).

Parameters:
evictionStrategy -

setEvictionStrategy

@Deprecated
public void setEvictionStrategy(String eStrategy)
Deprecated. Use FluentConfiguration.EvictionConfig.strategy(org.infinispan.eviction.EvictionStrategy) instead

Eviction strategy. Available options are 'UNORDERED', 'FIFO', 'LRU', 'LIRS' and 'NONE' (to disable eviction).

Parameters:
eStrategy -

getEvictionThreadPolicy

public EvictionThreadPolicy getEvictionThreadPolicy()

setEvictionThreadPolicy

@Deprecated
public void setEvictionThreadPolicy(EvictionThreadPolicy policy)
Deprecated. Use FluentConfiguration.EvictionConfig.threadPolicy(org.infinispan.eviction.EvictionThreadPolicy) instead

Threading policy for eviction.

Parameters:
policy -

setEvictionThreadPolicy

@Deprecated
public void setEvictionThreadPolicy(String policy)
Deprecated. Use FluentConfiguration.EvictionConfig.threadPolicy(org.infinispan.eviction.EvictionThreadPolicy) instead

Threading policy for eviction.

Parameters:
policy -

getEvictionMaxEntries

public int getEvictionMaxEntries()

setEvictionMaxEntries

@Deprecated
public void setEvictionMaxEntries(int evictionMaxEntries)
Deprecated. Use FluentConfiguration.EvictionConfig.maxEntries(Integer) instead

Maximum number of entries in a cache instance. If selected value is not a power of two the actual value will default to the least power of two larger than selected value. -1 means no limit.

Parameters:
evictionMaxEntries -

getExpirationLifespan

public long getExpirationLifespan()
Expiration lifespan, in milliseconds


setExpirationLifespan

@Deprecated
public void setExpirationLifespan(long expirationLifespan)
Deprecated. Use FluentConfiguration.ExpirationConfig.lifespan(Long) instead

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 basis by using the Cache API.

Parameters:
expirationLifespan -

getExpirationMaxIdle

public long getExpirationMaxIdle()
Expiration max idle time, in milliseconds


setExpirationMaxIdle

@Deprecated
public void setExpirationMaxIdle(long expirationMaxIdle)
Deprecated. Use FluentConfiguration.ExpirationConfig.maxIdle(Long) instead

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 basis by using the Cache API.

Parameters:
expirationMaxIdle -

getExpirationWakeUpInterval

public long getExpirationWakeUpInterval()
Eviction thread wake up interval, in milliseconds.


setTransactionManagerLookupClass

@Deprecated
public void setTransactionManagerLookupClass(String transactionManagerLookupClass)
Deprecated. Use FluentConfiguration.TransactionConfig.transactionManagerLookupClass(Class) instead

Fully qualified class name of a class that looks up a reference to a TransactionManager. The default provided is capable of locating the default TransactionManager in most popular Java EE systems, using a JNDI lookup.

Parameters:
transactionManagerLookupClass -

setTransactionManagerLookup

@Deprecated
public void setTransactionManagerLookup(TransactionManagerLookup transactionManagerLookup)
Deprecated. Use FluentConfiguration.TransactionConfig.transactionManagerLookup(TransactionManagerLookup) instead


setCacheLoaderManagerConfig

@Deprecated
public void setCacheLoaderManagerConfig(CacheLoaderManagerConfig cacheLoaderManagerConfig)
Deprecated. Use FluentConfiguration.LoadersConfig.addCacheLoader(org.infinispan.loaders.CacheLoaderConfig...) instead


setSyncCommitPhase

@Deprecated
public void setSyncCommitPhase(boolean syncCommitPhase)
Deprecated. Use FluentConfiguration.TransactionConfig.syncCommitPhase(Boolean) instead

If true, the cluster-wide commit phase in two-phase commit (2PC) transactions will be synchronous, so Infinispan will wait for responses from all nodes to which the commit was sent. Otherwise, the commit phase will be asynchronous. Keeping it as false improves performance of 2PC transactions, since any remote failures are trapped during the prepare phase anyway and appropriate rollbacks are issued.

Parameters:
syncCommitPhase -

setSyncRollbackPhase

@Deprecated
public void setSyncRollbackPhase(boolean syncRollbackPhase)
Deprecated. Use FluentConfiguration.TransactionConfig.syncRollbackPhase(Boolean) instead

If true, the cluster-wide rollback phase in two-phase commit (2PC) transactions will be synchronous, so Infinispan will wait for responses from all nodes to which the rollback was sent. Otherwise, the rollback phase will be asynchronous. Keeping it as false improves performance of 2PC transactions.

Parameters:
syncRollbackPhase -

setUseEagerLocking

@Deprecated
public void setUseEagerLocking(boolean useEagerLocking)
Deprecated. Use FluentConfiguration.TransactionConfig.useEagerLocking(Boolean) instead

Only has effect for DIST mode and when useEagerLocking is set to true. When this is enabled, then only one node is locked in the cluster, disregarding numOwners config. On the opposite, if this is false, then on all cache.lock() calls numOwners RPCs are being performed. The node that gets locked is the main data owner, i.e. the node where data would reside if numOwners==1. If the node where the lock resides crashes, then the transaction is marked for rollback - data is in a consistent state, no fault tolerance.

Parameters:
useEagerLocking -

setEagerLockSingleNode

@Deprecated
public void setEagerLockSingleNode(boolean eagerLockSingleNode)
Deprecated. Use FluentConfiguration.TransactionConfig.eagerLockSingleNode(Boolean) instead

Only has effect for DIST mode and when useEagerLocking is set to true. When this is enabled, then only one node is locked in the cluster, disregarding numOwners config. On the opposite, if this is false, then on all cache.lock() calls numOwners RPCs are being performed. The node that gets locked is the main data owner, i.e. the node where data would reside if numOwners==1. If the node where the lock resides crashes, then the transaction is marked for rollback - data is in a consistent state, no fault tolerance.

Parameters:
eagerLockSingleNode -

setCacheStopTimeout

@Deprecated
public Configuration setCacheStopTimeout(int cacheStopTimeout)
Deprecated. Use FluentConfiguration.TransactionConfig.cacheStopTimeout(Integer) instead

If there are any ongoing transactions when a cache is stopped, Infinispan waits for ongoing remote and local transactions to finish. The amount of time to wait for is defined by the cache stop timeout. It is recommended that this value does not exceed the transaction timeout because even if a new transaction was started just before the cache was stopped, this could only last as long as the transaction timeout allows it.


setUseReplQueue

@Deprecated
public void setUseReplQueue(boolean useReplQueue)
Deprecated. Use FluentConfiguration.AsyncConfig.useReplQueue(Boolean) instead

If true, this forces all async communications to be queued up and sent out periodically as a batch.

Parameters:
useReplQueue -

setIsolationLevel

@Deprecated
public void setIsolationLevel(IsolationLevel isolationLevel)
Deprecated. Use FluentConfiguration.LockingConfig.isolationLevel(org.infinispan.util.concurrent.IsolationLevel) instead

Cache isolation level. Infinispan only supports READ_COMMITTED or REPEATABLE_READ isolation levels. See http://en.wikipedia.org/wiki/Isolation_level for a discussion on isolation levels.

Parameters:
isolationLevel -

setStateRetrievalTimeout

@Deprecated
public void setStateRetrievalTimeout(long stateRetrievalTimeout)
Deprecated. Use FluentConfiguration.StateRetrievalConfig.timeout(Long) instead

This is the maximum amount of time - in milliseconds - to wait for state from neighboring caches, before throwing an exception and aborting startup.

Parameters:
stateRetrievalTimeout -

setStateRetrievalTimeout

@Deprecated
public void setStateRetrievalTimeout(long stateRetrievalTimeout,
                                                TimeUnit timeUnit)
Deprecated. Use FluentConfiguration.StateRetrievalConfig.timeout(Long) instead


setStateRetrievalLogFlushTimeout

@Deprecated
public void setStateRetrievalLogFlushTimeout(long logFlushTimeout)
Deprecated. Use FluentConfiguration.StateRetrievalConfig.logFlushTimeout(Long) instead

This is the maximum amount of time to run a cluster-wide flush, to allow for syncing of transaction logs.

Parameters:
logFlushTimeout -

setStateRetrievalLogFlushTimeout

@Deprecated
public void setStateRetrievalLogFlushTimeout(long logFlushTimeout,
                                                        TimeUnit timeUnit)
Deprecated. Use FluentConfiguration.StateRetrievalConfig.logFlushTimeout(Long) instead


setStateRetrievalMaxNonProgressingLogWrites

@Deprecated
public void setStateRetrievalMaxNonProgressingLogWrites(int maxNonProgressingLogWrites)
Deprecated. Use FluentConfiguration.StateRetrievalConfig.maxNonProgressingLogWrites(Integer) instead

This is the maximum number of non-progressing transaction log writes after which a brute-force flush approach is resorted to, to synchronize transaction logs.

Parameters:
maxNonProgressingLogWrites -

setStateRetrievalInitialRetryWaitTime

@Deprecated
public void setStateRetrievalInitialRetryWaitTime(long initialRetryWaitTime)
Deprecated. Use FluentConfiguration.StateRetrievalConfig.initialRetryWaitTime(Long) instead

Initial wait time when backing off before retrying state transfer retrieval

Parameters:
initialRetryWaitTime -

setStateRetrievalInitialRetryWaitTime

@Deprecated
public void setStateRetrievalInitialRetryWaitTime(long initialRetryWaitTime,
                                                             TimeUnit timeUnit)
Deprecated. Use FluentConfiguration.StateRetrievalConfig.initialRetryWaitTime(Long) instead


setStateRetrievalRetryWaitTimeIncreaseFactor

@Deprecated
public void setStateRetrievalRetryWaitTimeIncreaseFactor(int retryWaitTimeIncreaseFactor)
Deprecated. Use FluentConfiguration.StateRetrievalConfig.retryWaitTimeIncreaseFactor(Integer) instead

Wait time increase factor over successive state retrieval backoffs

Parameters:
retryWaitTimeIncreaseFactor -

setStateRetrievalNumRetries

@Deprecated
public void setStateRetrievalNumRetries(int numRetries)
Deprecated. Use FluentConfiguration.StateRetrievalConfig.numRetries(Integer) instead

Number of state retrieval retries before giving up and aborting startup.

Parameters:
numRetries -

setIsolationLevel

@Deprecated
public void setIsolationLevel(String isolationLevel)
Deprecated. Use FluentConfiguration.LockingConfig.isolationLevel(org.infinispan.util.concurrent.IsolationLevel) instead


setUseLazyDeserialization

@Deprecated
public void setUseLazyDeserialization(boolean useLazyDeserialization)
Deprecated. Use AbstractFluentConfigurationBean.storeAsBinary() instead


setL1CacheEnabled

@Deprecated
public void setL1CacheEnabled(boolean l1CacheEnabled)
Deprecated. Use AbstractFluentConfigurationBean.l1() instead

Toggle to enable/disable L1 cache.

Parameters:
l1CacheEnabled -

setL1Lifespan

@Deprecated
public void setL1Lifespan(long l1Lifespan)
Deprecated. Use FluentConfiguration.L1Config.lifespan(Long) instead

Maximum lifespan of an entry placed in the L1 cache.

Parameters:
l1Lifespan -

setL1OnRehash

@Deprecated
public void setL1OnRehash(boolean l1OnRehash)
Deprecated. Use FluentConfiguration.L1Config.onRehash(Boolean) instead

If true, entries removed due to a rehash will be moved to L1 rather than being removed altogether.

Parameters:
l1OnRehash -

setL1InvalidationThreshold

@Deprecated
public void setL1InvalidationThreshold(int threshold)
Deprecated. Use FluentConfiguration.L1Config.invalidationThreshold(Integer) instead

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.

Parameters:
threshold - the threshold over which to use a multicast

getL1InvalidationThreshold

public int getL1InvalidationThreshold()

setConsistentHashClass

@Deprecated
public void setConsistentHashClass(String consistentHashClass)
Deprecated. Use FluentConfiguration.HashConfig.consistentHashClass(Class) instead

Fully qualified name of class providing consistent hash algorithm

Parameters:
consistentHashClass -

setHashFunctionClass

@Deprecated
public void setHashFunctionClass(String hashFunctionClass)
Deprecated. Use FluentConfiguration.HashConfig.hashFunctionClass(Class) instead

A fully qualified name of the class providing a hash function, used as a bit spreader and a general hash code generator. Typically used in conjunction with the many default ConsistentHash implementations shipped.

Parameters:
hashFunctionClass -

setNumOwners

@Deprecated
public void setNumOwners(int numOwners)
Deprecated. Use FluentConfiguration.HashConfig.numOwners(Integer) instead

Number of cluster-wide replicas for each cache entry.

Parameters:
numOwners -

setRehashEnabled

@Deprecated
public void setRehashEnabled(boolean rehashEnabled)
Deprecated. Use FluentConfiguration.HashConfig.rehashEnabled(Boolean) instead

If false, no rebalancing or rehashing will take place when a new node joins the cluster or a node leaves

Parameters:
rehashEnabled -

setRehashWaitTime

@Deprecated
public void setRehashWaitTime(long rehashWaitTime)
Deprecated. Use FluentConfiguration.HashConfig.rehashWait(Long) instead


setUseAsyncMarshalling

@Deprecated
public void setUseAsyncMarshalling(boolean useAsyncMarshalling)
Deprecated. Use FluentConfiguration.AsyncConfig.asyncMarshalling(Boolean) instead

If true, asynchronous marshalling is enabled which means that caller can return even quicker, but it can suffer from reordering of operations. You can find more information here

Parameters:
useAsyncMarshalling -

setIndexingEnabled

@Deprecated
public void setIndexingEnabled(boolean enabled)
Deprecated. Use AbstractFluentConfigurationBean.indexing() instead

If enabled, entries will be indexed when they are added to the cache. Indexes will be updated as entries change or are removed.

Parameters:
enabled -

setIndexLocalOnly

@Deprecated
public void setIndexLocalOnly(boolean indexLocalOnly)
Deprecated. Use FluentConfiguration.IndexingConfig.indexLocalOnly(Boolean) instead

If true, only index changes made locally, ignoring remote changes. This is useful if indexes are shared across a cluster to prevent redundant indexing of updates.

Parameters:
indexLocalOnly -

isUseAsyncMarshalling

public boolean isUseAsyncMarshalling()

isUseReplQueue

public boolean isUseReplQueue()

getReplQueueMaxElements

public int getReplQueueMaxElements()

getReplQueueInterval

public long getReplQueueInterval()

getReplQueueClass

public String getReplQueueClass()

isExposeJmxStatistics

public boolean isExposeJmxStatistics()

isInvocationBatchingEnabled

public boolean isInvocationBatchingEnabled()
Returns:
true if invocation batching is enabled.
Since:
4.0

isIndexingEnabled

public boolean isIndexingEnabled()

isIndexLocalOnly

public boolean isIndexLocalOnly()

getIndexingProperties

public TypedProperties getIndexingProperties()

isFetchInMemoryState

public boolean isFetchInMemoryState()

isAlwaysProvideInMemoryState

public boolean isAlwaysProvideInMemoryState()

isEagerLockingSingleNodeInUse

public boolean isEagerLockingSingleNodeInUse()
Returns true if and only if isUseEagerLocking(), isEagerLockSingleNode() and the cache is distributed.


getLockAcquisitionTimeout

public long getLockAcquisitionTimeout()

getSyncReplTimeout

public long getSyncReplTimeout()

getCacheMode

public Configuration.CacheMode getCacheMode()

getIsolationLevel

public IsolationLevel getIsolationLevel()

getTransactionManagerLookupClass

public String getTransactionManagerLookupClass()

getTransactionManagerLookup

public TransactionManagerLookup getTransactionManagerLookup()

getTransactionSynchronizationRegistryLookup

public TransactionSynchronizationRegistryLookup getTransactionSynchronizationRegistryLookup()

getCacheLoaderManagerConfig

@Deprecated
public CacheLoaderManagerConfig getCacheLoaderManagerConfig()
Deprecated. Use getCacheLoaders(), isCacheLoaderShared() isFetchPersistentState(), isCacheLoaderPassivation() and isCacheLoaderPreload() instead


getCacheLoaders

public List<CacheLoaderConfig> getCacheLoaders()

isCacheLoaderShared

public boolean isCacheLoaderShared()

isFetchPersistentState

public boolean isFetchPersistentState()

isCacheLoaderPassivation

public boolean isCacheLoaderPassivation()

isCacheLoaderPreload

public boolean isCacheLoaderPreload()

isSyncCommitPhase

public boolean isSyncCommitPhase()

isSyncRollbackPhase

public boolean isSyncRollbackPhase()

isUseEagerLocking

public boolean isUseEagerLocking()

isEagerLockSingleNode

public boolean isEagerLockSingleNode()

getCacheStopTimeout

public int getCacheStopTimeout()

getStateRetrievalTimeout

public long getStateRetrievalTimeout()

getStateRetrievalInitialRetryWaitTime

public long getStateRetrievalInitialRetryWaitTime()

getStateRetrievalRetryWaitTimeIncreaseFactor

public int getStateRetrievalRetryWaitTimeIncreaseFactor()

getStateRetrievalNumRetries

public int getStateRetrievalNumRetries()

getStateRetrievalMaxNonProgressingLogWrites

public int getStateRetrievalMaxNonProgressingLogWrites()

getStateRetrievalLogFlushTimeout

public long getStateRetrievalLogFlushTimeout()

isUseLazyDeserialization

@Deprecated
public boolean isUseLazyDeserialization()
Deprecated. Use isStoreAsBinary()


isStoreAsBinary

public boolean isStoreAsBinary()

isL1CacheEnabled

public boolean isL1CacheEnabled()

getL1Lifespan

public long getL1Lifespan()

isL1OnRehash

public boolean isL1OnRehash()

getConsistentHashClass

public String getConsistentHashClass()

getHashFunctionClass

public String getHashFunctionClass()

getNumOwners

public int getNumOwners()

getNumVirtualNodes

public int getNumVirtualNodes()

isGroupsEnabled

public boolean isGroupsEnabled()

getGroupers

public List<Grouper<?>> getGroupers()

isRehashEnabled

public boolean isRehashEnabled()

getRehashWaitTime

public long getRehashWaitTime()

isTransactionRecoveryEnabled

public boolean isTransactionRecoveryEnabled()
Returns true if transaction recovery information is collected.


getTransactionRecoveryCacheName

public String getTransactionRecoveryCacheName()
Returns the name of the cache used in order to keep recovery information.


isUseSynchronizationForTransactions

public boolean isUseSynchronizationForTransactions()
If enabled Infinispan enlists within transactions as a Synchronization. If disabled (default) then Infinispan enlists as an XAResource, being able to fully participate in distributed transaction. More about this here.


accept

public void accept(ConfigurationBeanVisitor v)

equals

public boolean equals(Object o)
Also see equalsIgnoreName(Object) for equality that does not consider the name of the configuration.

Overrides:
equals in class Object

equalsIgnoreName

public boolean equalsIgnoreName(Object o)
Same as equals(Object) but it ignores the getName() attribute in the comparison.


hashCode

public int hashCode()
Overrides:
hashCode in class Object

clone

public Configuration clone()
Specified by:
clone in interface CloneableConfigurationComponent
Overrides:
clone in class AbstractNamedCacheConfigurationBean

toXmlString

public String toXmlString()
Converts this configuration instance to an XML representation containing the current settings.

Returns:
a string containing the formatted XML representation of this configuration instance.

isUsingCacheLoaders

public boolean isUsingCacheLoaders()

getCustomInterceptors

public List<CustomInterceptorConfig> getCustomInterceptors()
Returns the CustomInterceptorConfig, if any, associated with this configuration object. The custom interceptors will be added to the cache at startup in the sequence defined by this list.

Returns:
List of custom interceptors, never null

isStoreKeysAsBinary

public boolean isStoreKeysAsBinary()

isStoreValuesAsBinary

public boolean isStoreValuesAsBinary()

setCustomInterceptors

@Deprecated
public void setCustomInterceptors(List<CustomInterceptorConfig> customInterceptors)
Deprecated. Use FluentConfiguration.CustomInterceptorCumulator.add(org.infinispan.interceptors.base.CommandInterceptor)


assertValid

public void assertValid()
                 throws ConfigurationException
Throws:
ConfigurationException

isOnePhaseCommit

public boolean isOnePhaseCommit()

-->

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