org.infinispan.config
Class Configuration.LockingType

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

Deprecated.

@Deprecated
public static class Configuration.LockingType
extends AbstractNamedCacheConfigurationBean
implements FluentConfiguration.LockingConfig

Defines the local, in-VM locking and concurrency characteristics of the cache.

See Also:
Configuration reference, Serialized Form

Field Summary
protected  Integer concurrencyLevel
          Deprecated.  
protected  IsolationLevel isolationLevel
          Deprecated.  
protected  Long lockAcquisitionTimeout
          Deprecated.  
protected  Boolean useLockStriping
          Deprecated.  
protected  Boolean writeSkewCheck
          Deprecated.  
 
Fields inherited from class org.infinispan.config.AbstractNamedCacheConfigurationBean
cr
 
Fields inherited from class org.infinispan.config.AbstractConfigurationBean
overriddenConfigurationElements
 
Constructor Summary
Configuration.LockingType()
          Deprecated.  
 
Method Summary
 void accept(ConfigurationBeanVisitor v)
          Deprecated.  
 FluentConfiguration.AsyncConfig async()
          Deprecated.  
 Configuration build()
          Deprecated.  
 Configuration build()
          Deprecated.  
 FluentConfiguration.TransactionConfig cacheStopTimeout(Integer cacheStopTimeout)
          Deprecated.  
 FluentConfiguration.ClusteringConfig clustering()
          Deprecated.  
 FluentConfiguration.ClusteringConfig clustering()
          Deprecated.  
 FluentConfiguration.LockingConfig concurrencyLevel(Integer concurrencyLevel)
          Deprecated. Concurrency level for lock containers.
 FluentConfiguration.CustomInterceptorsConfig customInterceptors()
          Deprecated.  
 FluentConfiguration.CustomInterceptorsConfig customInterceptors()
          Deprecated.  
 FluentConfiguration.DataContainerConfig dataContainer()
          Deprecated.  
 FluentConfiguration.DataContainerConfig dataContainer()
          Deprecated.  
 FluentConfiguration.DeadlockDetectionConfig deadlockDetection()
          Deprecated. This method allows configuration of the deadlock detection.
 FluentConfiguration.DeadlockDetectionConfig deadlockDetection()
          Deprecated. This method allows configuration of the deadlock detection.
 FluentConfiguration.TransactionConfig eagerLockSingleNode(Boolean eagerLockSingleNode)
          Deprecated.  
 boolean equals(Object o)
          Deprecated.  
 FluentConfiguration.EvictionConfig eviction()
          Deprecated.  
 FluentConfiguration.EvictionConfig eviction()
          Deprecated.  
 FluentConfiguration.ExpirationConfig expiration()
          Deprecated.  
 FluentConfiguration.ExpirationConfig expiration()
          Deprecated.  
 Integer getConcurrencyLevel()
          Deprecated.  
 IsolationLevel getIsolationLevel()
          Deprecated.  
 Long getLockAcquisitionTimeout()
          Deprecated.  
 FluentConfiguration.HashConfig hash()
          Deprecated.  
 int hashCode()
          Deprecated.  
 FluentConfiguration.IndexingConfig indexing()
          Deprecated. This method allows configuration of the indexing subsystem.
 FluentConfiguration.IndexingConfig indexing()
          Deprecated. This method allows configuration of the indexing subsystem.
 FluentConfiguration.InvocationBatchingConfig invocationBatching()
          Deprecated. This method allows configuration of invocation batching.
 FluentConfiguration.InvocationBatchingConfig invocationBatching()
          Deprecated. This method allows configuration of invocation batching.
 FluentConfiguration.LockingConfig isolationLevel(IsolationLevel isolationLevel)
          Deprecated. Cache isolation level.
 Boolean isUseLockStriping()
          Deprecated.  
 Boolean isWriteSkewCheck()
          Deprecated.  
 FluentConfiguration.JmxStatisticsConfig jmxStatistics()
          Deprecated. This method allows configuration of jmx statistics.
 FluentConfiguration.JmxStatisticsConfig jmxStatistics()
          Deprecated. This method allows configuration of jmx statistics.
 FluentConfiguration.L1Config l1()
          Deprecated.  
 FluentConfiguration.LoadersConfig loaders()
          Deprecated.  
 FluentConfiguration.LoadersConfig loaders()
          Deprecated.  
 FluentConfiguration.LockingConfig lockAcquisitionTimeout(Long lockAcquisitionTimeout)
          Deprecated. Maximum time to attempt a particular lock acquisition
 FluentConfiguration.LockingConfig locking()
          Deprecated.  
 FluentConfiguration.LockingConfig locking()
          Deprecated.  
 FluentConfiguration.ClusteringConfig mode(Configuration.CacheMode mode)
          Deprecated.  
 FluentConfiguration.RecoveryConfig recovery()
          Deprecated.  
 void setConcurrencyLevel(Integer concurrencyLevel)
          Deprecated. The visibility of this will be reduced, use concurrencyLevel(Integer) instead
protected  Configuration.LockingType setConfiguration(Configuration config)
          Deprecated.  
 void setIsolationLevel(IsolationLevel isolationLevel)
          Deprecated. The visibility of this will be reduced, use isolationLevel(org.infinispan.util.concurrent.IsolationLevel) instead
 void setLockAcquisitionTimeout(Long lockAcquisitionTimeout)
          Deprecated. The visibility of this will be reduced, use lockAcquisitionTimeout(Long) instead
 void setUseLockStriping(Boolean useLockStriping)
          Deprecated. The visibility of this will be reduced, use useLockStriping(Boolean) instead
 void setWriteSkewCheck(Boolean writeSkewCheck)
          Deprecated. The visibility of this will be reduced, use writeSkewCheck(Boolean) instead
 FluentConfiguration.StateRetrievalConfig stateRetrieval()
          Deprecated.  
 FluentConfiguration.StoreAsBinaryConfig storeAsBinary()
          Deprecated. This method allows configuration of lazy deserialization.
 FluentConfiguration.StoreAsBinaryConfig storeAsBinary()
          Deprecated. This method allows configuration of lazy deserialization.
 FluentConfiguration.SyncConfig sync()
          Deprecated.  
 FluentConfiguration.TransactionConfig syncCommitPhase(Boolean syncCommitPhase)
          Deprecated.  
 FluentConfiguration.TransactionConfig syncRollbackPhase(Boolean syncRollbackPhase)
          Deprecated.  
 FluentConfiguration.TransactionConfig transaction()
          Deprecated.  
 FluentConfiguration.TransactionConfig transaction()
          Deprecated.  
 FluentConfiguration.TransactionConfig transactionManagerLookup(TransactionManagerLookup transactionManagerLookup)
          Deprecated.  
 FluentConfiguration.TransactionConfig transactionManagerLookupClass(Class<? extends TransactionManagerLookup> transactionManagerLookupClass)
          Deprecated.  
 FluentConfiguration.TransactionConfig transactionSynchronizationRegistryLookup(TransactionSynchronizationRegistryLookup transactionSynchronizationRegistryLookup)
          Deprecated.  
 FluentConfiguration.UnsafeConfig unsafe()
          Deprecated.  
 FluentConfiguration.UnsafeConfig unsafe()
          Deprecated.  
 FluentConfiguration.TransactionConfig useEagerLocking(Boolean useEagerLocking)
          Deprecated.  
 FluentConfiguration.LockingConfig useLockStriping(Boolean useLockStriping)
          Deprecated. If true, a pool of shared locks is maintained for all entries that need to be locked.
 FluentConfiguration.TransactionConfig useSynchronization(Boolean useSynchronization)
          Deprecated.  
 FluentConfiguration.VersioningConfig versioning()
          Deprecated.  
 FluentConfiguration.VersioningConfig versioning()
          Deprecated.  
 FluentConfiguration.LockingConfig writeSkewCheck(Boolean writeSkewCheck)
          Deprecated. This setting is only applicable in the case of REPEATABLE_READ.
 
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

lockAcquisitionTimeout

@Dynamic
protected Long lockAcquisitionTimeout
Deprecated. 

isolationLevel

protected IsolationLevel isolationLevel
Deprecated. 

writeSkewCheck

protected Boolean writeSkewCheck
Deprecated. 

useLockStriping

protected Boolean useLockStriping
Deprecated. 

concurrencyLevel

protected Integer concurrencyLevel
Deprecated. 
Constructor Detail

Configuration.LockingType

public Configuration.LockingType()
Deprecated. 
Method Detail

accept

public void accept(ConfigurationBeanVisitor v)
Deprecated. 

getLockAcquisitionTimeout

public Long getLockAcquisitionTimeout()
Deprecated. 

setLockAcquisitionTimeout

@Deprecated
public void setLockAcquisitionTimeout(Long lockAcquisitionTimeout)
Deprecated. The visibility of this will be reduced, use lockAcquisitionTimeout(Long) instead


lockAcquisitionTimeout

public FluentConfiguration.LockingConfig lockAcquisitionTimeout(Long lockAcquisitionTimeout)
Deprecated. 
Description copied from interface: FluentConfiguration.LockingConfig
Maximum time to attempt a particular lock acquisition

Specified by:
lockAcquisitionTimeout in interface FluentConfiguration.LockingConfig

getIsolationLevel

public IsolationLevel getIsolationLevel()
Deprecated. 

setIsolationLevel

@Deprecated
public void setIsolationLevel(IsolationLevel isolationLevel)
Deprecated. The visibility of this will be reduced, use isolationLevel(org.infinispan.util.concurrent.IsolationLevel) instead


isolationLevel

public FluentConfiguration.LockingConfig isolationLevel(IsolationLevel isolationLevel)
Deprecated. 
Description copied from interface: FluentConfiguration.LockingConfig
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.

Specified by:
isolationLevel in interface FluentConfiguration.LockingConfig

isWriteSkewCheck

public Boolean isWriteSkewCheck()
Deprecated. 

setWriteSkewCheck

@Deprecated
public void setWriteSkewCheck(Boolean writeSkewCheck)
Deprecated. The visibility of this will be reduced, use writeSkewCheck(Boolean) instead


writeSkewCheck

public FluentConfiguration.LockingConfig writeSkewCheck(Boolean writeSkewCheck)
Deprecated. 
Description copied from interface: FluentConfiguration.LockingConfig
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.

Specified by:
writeSkewCheck in interface FluentConfiguration.LockingConfig

isUseLockStriping

public Boolean isUseLockStriping()
Deprecated. 

setUseLockStriping

@Deprecated
public void setUseLockStriping(Boolean useLockStriping)
Deprecated. The visibility of this will be reduced, use useLockStriping(Boolean) instead


useLockStriping

public FluentConfiguration.LockingConfig useLockStriping(Boolean useLockStriping)
Deprecated. 
Description copied from interface: FluentConfiguration.LockingConfig
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.

Specified by:
useLockStriping in interface FluentConfiguration.LockingConfig

getConcurrencyLevel

public Integer getConcurrencyLevel()
Deprecated. 

setConcurrencyLevel

@Deprecated
public void setConcurrencyLevel(Integer concurrencyLevel)
Deprecated. The visibility of this will be reduced, use concurrencyLevel(Integer) instead


concurrencyLevel

public FluentConfiguration.LockingConfig concurrencyLevel(Integer concurrencyLevel)
Deprecated. 
Description copied from interface: FluentConfiguration.LockingConfig
Concurrency level for lock containers. Adjust this value according to the number of concurrent threads interacting with Infinispan. Similar to the concurrencyLevel tuning parameter seen in the JDK's ConcurrentHashMap.

Specified by:
concurrencyLevel in interface FluentConfiguration.LockingConfig

setConfiguration

protected Configuration.LockingType setConfiguration(Configuration config)
Deprecated. 

equals

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

hashCode

public int hashCode()
Deprecated. 
Overrides:
hashCode in class Object

locking

public FluentConfiguration.LockingConfig locking()
Deprecated. 

loaders

public FluentConfiguration.LoadersConfig loaders()
Deprecated. 

transaction

public FluentConfiguration.TransactionConfig transaction()
Deprecated. 

deadlockDetection

public FluentConfiguration.DeadlockDetectionConfig deadlockDetection()
Deprecated. 
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()
Deprecated. 

eviction

public FluentConfiguration.EvictionConfig eviction()
Deprecated. 

expiration

public FluentConfiguration.ExpirationConfig expiration()
Deprecated. 

clustering

public FluentConfiguration.ClusteringConfig clustering()
Deprecated. 

indexing

public FluentConfiguration.IndexingConfig indexing()
Deprecated. 
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()
Deprecated. 

unsafe

public FluentConfiguration.UnsafeConfig unsafe()
Deprecated. 

jmxStatistics

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


storeAsBinary

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


invocationBatching

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


versioning

public FluentConfiguration.VersioningConfig versioning()
Deprecated. 

build

public Configuration build()
Deprecated. 

locking

public FluentConfiguration.LockingConfig locking()
Deprecated. 

loaders

public FluentConfiguration.LoadersConfig loaders()
Deprecated. 

transaction

public FluentConfiguration.TransactionConfig transaction()
Deprecated. 

deadlockDetection

public FluentConfiguration.DeadlockDetectionConfig deadlockDetection()
Deprecated. 
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()
Deprecated. 

eviction

public FluentConfiguration.EvictionConfig eviction()
Deprecated. 

expiration

public FluentConfiguration.ExpirationConfig expiration()
Deprecated. 

clustering

public FluentConfiguration.ClusteringConfig clustering()
Deprecated. 

indexing

public FluentConfiguration.IndexingConfig indexing()
Deprecated. 
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()
Deprecated. 

unsafe

public FluentConfiguration.UnsafeConfig unsafe()
Deprecated. 

jmxStatistics

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


storeAsBinary

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


versioning

public FluentConfiguration.VersioningConfig versioning()
Deprecated. 

invocationBatching

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


async

public FluentConfiguration.AsyncConfig async()
Deprecated. 

sync

public FluentConfiguration.SyncConfig sync()
Deprecated. 

stateRetrieval

public FluentConfiguration.StateRetrievalConfig stateRetrieval()
Deprecated. 

l1

public FluentConfiguration.L1Config l1()
Deprecated. 

hash

public FluentConfiguration.HashConfig hash()
Deprecated. 

mode

public FluentConfiguration.ClusteringConfig mode(Configuration.CacheMode mode)
Deprecated. 

transactionManagerLookupClass

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

transactionManagerLookup

public FluentConfiguration.TransactionConfig transactionManagerLookup(TransactionManagerLookup transactionManagerLookup)
Deprecated. 

transactionSynchronizationRegistryLookup

public FluentConfiguration.TransactionConfig transactionSynchronizationRegistryLookup(TransactionSynchronizationRegistryLookup transactionSynchronizationRegistryLookup)
Deprecated. 

syncCommitPhase

public FluentConfiguration.TransactionConfig syncCommitPhase(Boolean syncCommitPhase)
Deprecated. 

syncRollbackPhase

public FluentConfiguration.TransactionConfig syncRollbackPhase(Boolean syncRollbackPhase)
Deprecated. 

useEagerLocking

public FluentConfiguration.TransactionConfig useEagerLocking(Boolean useEagerLocking)
Deprecated. 

eagerLockSingleNode

public FluentConfiguration.TransactionConfig eagerLockSingleNode(Boolean eagerLockSingleNode)
Deprecated. 

cacheStopTimeout

public FluentConfiguration.TransactionConfig cacheStopTimeout(Integer cacheStopTimeout)
Deprecated. 

useSynchronization

public FluentConfiguration.TransactionConfig useSynchronization(Boolean useSynchronization)
Deprecated. 

recovery

public FluentConfiguration.RecoveryConfig recovery()
Deprecated. 

build

public Configuration build()
Deprecated. 

-->

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