org.infinispan.config
Class Configuration.TransactionType
java.lang.Object
org.infinispan.config.AbstractConfigurationBean
org.infinispan.config.AbstractNamedCacheConfigurationBean
org.infinispan.config.Configuration.TransactionType
- All Implemented Interfaces:
- Serializable, Cloneable, CloneableConfigurationComponent, FluentConfiguration.TransactionConfig, JAXBUnmarshallable
- Enclosing class:
- Configuration
public static class Configuration.TransactionType
- extends AbstractNamedCacheConfigurationBean
- implements FluentConfiguration.TransactionConfig
Defines transactional (JTA) characteristics of the cache.
- See Also:
- Configuration reference,
Serialized Form
Method Summary |
void |
accept(ConfigurationBeanVisitor v)
|
FluentConfiguration.AsyncConfig |
async()
|
Configuration |
build()
|
Configuration |
build()
|
FluentConfiguration.TransactionConfig |
cacheStopTimeout(Integer cacheStopTimeout)
If there are any ongoing transactions when a cache is stopped, Infinispan waits for ongoing
remote and local transactions to finish. |
Configuration.TransactionType |
clone()
|
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.TransactionConfig |
eagerLockSingleNode(Boolean eagerLockSingleNode)
Only has effect for DIST mode and when useEagerLocking is set to true. |
boolean |
equals(Object o)
|
FluentConfiguration.EvictionConfig |
eviction()
|
FluentConfiguration.EvictionConfig |
eviction()
|
FluentConfiguration.ExpirationConfig |
expiration()
|
FluentConfiguration.ExpirationConfig |
expiration()
|
Integer |
getCacheStopTimeout()
|
String |
getTransactionManagerLookupClass()
|
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.InvocationBatchingConfig |
invocationBatching()
This method allows configuration of invocation batching. |
FluentConfiguration.InvocationBatchingConfig |
invocationBatching()
This method allows configuration of invocation batching. |
Boolean |
isEagerLockSingleNode()
|
Boolean |
isSyncCommitPhase()
|
Boolean |
isSyncRollbackPhase()
|
Boolean |
isUseEagerLocking()
|
Boolean |
isUseSynchronization()
|
FluentConfiguration.JmxStatisticsConfig |
jmxStatistics()
This method allows configuration of jmx statistics. |
FluentConfiguration.JmxStatisticsConfig |
jmxStatistics()
This method allows configuration of jmx statistics. |
FluentConfiguration.L1Config |
l1()
|
FluentConfiguration.LazyDeserializationConfig |
lazyDeserialization()
This method allows configuration of lazy deserialization. |
FluentConfiguration.LazyDeserializationConfig |
lazyDeserialization()
This method allows configuration of lazy deserialization. |
FluentConfiguration.LoadersConfig |
loaders()
|
FluentConfiguration.LoadersConfig |
loaders()
|
FluentConfiguration.LockingConfig |
locking()
|
FluentConfiguration.LockingConfig |
locking()
|
FluentConfiguration.ClusteringConfig |
mode(Configuration.CacheMode mode)
|
FluentConfiguration.RecoveryConfig |
recovery()
This method allows configuration of the transaction recovery cache. |
void |
setCacheStopTimeout(Integer cacheStopTimeout)
Deprecated. The visibility of this will be reduced, use cacheStopTimeout(Integer) instead |
protected Configuration.TransactionType |
setConfiguration(Configuration config)
|
FluentConfiguration.TransactionConfig |
setEagerLockSingleNode(Boolean eagerLockSingleNode)
Deprecated. The visibility of this will be reduced, use eagerLockSingleNode(Boolean) instead |
void |
setSyncCommitPhase(Boolean syncCommitPhase)
Deprecated. The visibility of this will be reduced, use syncCommitPhase(Boolean) instead |
void |
setSyncRollbackPhase(Boolean syncRollbackPhase)
Deprecated. The visibility of this will be reduced, use setSyncRollbackPhase(Boolean) instead |
void |
setTransactionManagerLookupClass(String transactionManagerLookupClass)
Deprecated. The visibility of this will be reduced, use transactionManagerLookupClass(Class) instead |
void |
setUseEagerLocking(Boolean useEagerLocking)
Deprecated. The visibility of this will be reduced, use useEagerLocking(Boolean) instead |
FluentConfiguration.StateRetrievalConfig |
stateRetrieval()
|
FluentConfiguration.SyncConfig |
sync()
|
FluentConfiguration.TransactionConfig |
syncCommitPhase(Boolean syncCommitPhase)
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. |
FluentConfiguration.TransactionConfig |
syncRollbackPhase(Boolean syncRollbackPhase)
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. |
FluentConfiguration.TransactionConfig |
transaction()
|
FluentConfiguration.TransactionConfig |
transaction()
|
FluentConfiguration.TransactionConfig |
transactionManagerLookup(TransactionManagerLookup transactionManagerLookup)
Configure Transaction manager lookup directly using an instance of TransactionManagerLookup |
FluentConfiguration.TransactionConfig |
transactionManagerLookupClass(Class<? extends TransactionManagerLookup> transactionManagerLookupClass)
Fully qualified class name of a class that looks up a reference to a
TransactionManager . |
FluentConfiguration.UnsafeConfig |
unsafe()
|
FluentConfiguration.UnsafeConfig |
unsafe()
|
FluentConfiguration.TransactionConfig |
useEagerLocking(Boolean useEagerLocking)
Only has effect for DIST mode and when useEagerLocking is set to true. |
FluentConfiguration.TransactionConfig |
useSynchronization(Boolean useSynchronization)
|
void |
willUnmarshall(Object parent)
Indicates that this element is about to be unmarshalled from the XML source that was processed. |
transactionManagerLookupClass
protected String transactionManagerLookupClass
transactionManagerLookup
protected TransactionManagerLookup transactionManagerLookup
syncCommitPhase
@Dynamic
protected Boolean syncCommitPhase
syncRollbackPhase
@Dynamic
protected Boolean syncRollbackPhase
useEagerLocking
@Dynamic
protected Boolean useEagerLocking
useSynchronization
protected Boolean useSynchronization
eagerLockSingleNode
@Dynamic
protected Boolean eagerLockSingleNode
cacheStopTimeout
@Dynamic
protected Integer cacheStopTimeout
recovery
protected Configuration.RecoveryType recovery
Configuration.TransactionType
public Configuration.TransactionType(String transactionManagerLookupClass)
Configuration.TransactionType
public Configuration.TransactionType()
accept
public void accept(ConfigurationBeanVisitor v)
getTransactionManagerLookupClass
public String getTransactionManagerLookupClass()
setTransactionManagerLookupClass
@Deprecated
public void setTransactionManagerLookupClass(String transactionManagerLookupClass)
- Deprecated. The visibility of this will be reduced, use
transactionManagerLookupClass(Class)
instead
transactionManagerLookupClass
public FluentConfiguration.TransactionConfig transactionManagerLookupClass(Class<? extends TransactionManagerLookup> transactionManagerLookupClass)
- Description copied from interface:
FluentConfiguration.TransactionConfig
- 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.
- Specified by:
transactionManagerLookupClass
in interface FluentConfiguration.TransactionConfig
isSyncCommitPhase
public Boolean isSyncCommitPhase()
setSyncCommitPhase
@Deprecated
public void setSyncCommitPhase(Boolean syncCommitPhase)
- Deprecated. The visibility of this will be reduced, use
syncCommitPhase(Boolean)
instead
syncCommitPhase
public FluentConfiguration.TransactionConfig syncCommitPhase(Boolean syncCommitPhase)
- Description copied from interface:
FluentConfiguration.TransactionConfig
- 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.
- Specified by:
syncCommitPhase
in interface FluentConfiguration.TransactionConfig
useSynchronization
public FluentConfiguration.TransactionConfig useSynchronization(Boolean useSynchronization)
- Specified by:
useSynchronization
in interface FluentConfiguration.TransactionConfig
isUseSynchronization
public Boolean isUseSynchronization()
isSyncRollbackPhase
public Boolean isSyncRollbackPhase()
setSyncRollbackPhase
@Deprecated
public void setSyncRollbackPhase(Boolean syncRollbackPhase)
- Deprecated. The visibility of this will be reduced, use
setSyncRollbackPhase(Boolean)
instead
syncRollbackPhase
public FluentConfiguration.TransactionConfig syncRollbackPhase(Boolean syncRollbackPhase)
- Description copied from interface:
FluentConfiguration.TransactionConfig
- 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.
- Specified by:
syncRollbackPhase
in interface FluentConfiguration.TransactionConfig
isUseEagerLocking
public Boolean isUseEagerLocking()
setUseEagerLocking
@Deprecated
public void setUseEagerLocking(Boolean useEagerLocking)
- Deprecated. The visibility of this will be reduced, use
useEagerLocking(Boolean)
instead
useEagerLocking
public FluentConfiguration.TransactionConfig useEagerLocking(Boolean useEagerLocking)
- Description copied from interface:
FluentConfiguration.TransactionConfig
- 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.
- Specified by:
useEagerLocking
in interface FluentConfiguration.TransactionConfig
transactionManagerLookup
public FluentConfiguration.TransactionConfig transactionManagerLookup(TransactionManagerLookup transactionManagerLookup)
- Description copied from interface:
FluentConfiguration.TransactionConfig
- Configure Transaction manager lookup directly using an instance of TransactionManagerLookup
- Specified by:
transactionManagerLookup
in interface FluentConfiguration.TransactionConfig
- Parameters:
transactionManagerLookup
- instance to use as lookup
- Returns:
- this TransactionConfig
isEagerLockSingleNode
public Boolean isEagerLockSingleNode()
setEagerLockSingleNode
@Deprecated
public FluentConfiguration.TransactionConfig setEagerLockSingleNode(Boolean eagerLockSingleNode)
- Deprecated. The visibility of this will be reduced, use
eagerLockSingleNode(Boolean)
instead
eagerLockSingleNode
public FluentConfiguration.TransactionConfig eagerLockSingleNode(Boolean eagerLockSingleNode)
- Description copied from interface:
FluentConfiguration.TransactionConfig
- 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.
- Specified by:
eagerLockSingleNode
in interface FluentConfiguration.TransactionConfig
getCacheStopTimeout
public Integer getCacheStopTimeout()
setCacheStopTimeout
@Deprecated
public void setCacheStopTimeout(Integer cacheStopTimeout)
- Deprecated. The visibility of this will be reduced, use
cacheStopTimeout(Integer)
instead
cacheStopTimeout
public FluentConfiguration.TransactionConfig cacheStopTimeout(Integer cacheStopTimeout)
- Description copied from interface:
FluentConfiguration.TransactionConfig
- 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.
- Specified by:
cacheStopTimeout
in interface FluentConfiguration.TransactionConfig
recovery
public FluentConfiguration.RecoveryConfig recovery()
- Description copied from interface:
FluentConfiguration.TransactionConfig
- This method allows configuration of the transaction recovery cache.
When this method is called, it automatically enables recovery. So,
if you want it to be disabled, make sure you call
FluentConfiguration.RecoveryConfig.disable()
- Specified by:
recovery
in interface FluentConfiguration.TransactionConfig
setConfiguration
protected Configuration.TransactionType setConfiguration(Configuration config)
equals
public boolean equals(Object o)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
willUnmarshall
public void willUnmarshall(Object parent)
- Description copied from interface:
JAXBUnmarshallable
- Indicates that this element is about to be unmarshalled from the XML source that was processed.
- Specified by:
willUnmarshall
in interface JAXBUnmarshallable
- Overrides:
willUnmarshall
in class AbstractConfigurationBean
- Parameters:
parent
- parent component
clone
public Configuration.TransactionType clone()
throws CloneNotSupportedException
- Specified by:
clone
in interface CloneableConfigurationComponent
- Overrides:
clone
in class AbstractNamedCacheConfigurationBean
- Throws:
CloneNotSupportedException
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.
lazyDeserialization
public FluentConfiguration.LazyDeserializationConfig lazyDeserialization()
- 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.
lazyDeserialization
public FluentConfiguration.LazyDeserializationConfig lazyDeserialization()
- 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)
build
public Configuration build()
Copyright © 2011 JBoss, a division of Red Hat. All Rights Reserved.