public class TransactionConfiguration extends Object
Modifier and Type | Method and Description |
---|---|
boolean |
autoCommit()
If the cache is transactional (i.e.
|
long |
cacheStopTimeout()
If there are any ongoing transactions when a cache is stopped, Infinispan waits for ongoing
remote and local transactions to finish.
|
TransactionConfiguration |
cacheStopTimeout(long l)
If there are any ongoing transactions when a cache is stopped, Infinispan waits for ongoing
remote and local transactions to finish.
|
long |
completedTxTimeout() |
boolean |
eagerLockingSingleNode()
Deprecated.
starting with Infinispan 5.1 single node locking is used by default
|
boolean |
equals(Object o) |
int |
hashCode() |
LockingMode |
lockingMode()
Configures whether the cache uses optimistic or pessimistic locking.
|
TransactionConfiguration |
lockingMode(LockingMode lockingMode)
Configures whether the cache uses optimistic or pessimistic locking.
|
long |
reaperWakeUpInterval() |
RecoveryConfiguration |
recovery()
This method allows configuration of the transaction recovery cache.
|
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.
|
TransactionConfiguration |
syncCommitPhase(boolean b)
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.
|
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.
|
TransactionConfiguration |
syncRollbackPhase(boolean b)
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.
|
String |
toString() |
TransactionManagerLookup |
transactionManagerLookup()
Configure Transaction manager lookup directly using an instance of TransactionManagerLookup.
|
TransactionConfiguration |
transactionManagerLookup(TransactionManagerLookup transactionManagerLookup) |
TransactionMode |
transactionMode() |
TransactionSynchronizationRegistryLookup |
transactionSynchronizationRegistryLookup()
Configure Transaction Synchronization Registry lookup directly using an instance of
TransactionManagerLookup.
|
boolean |
use1PcForAutoCommitTransactions()
Before Infinispan 5.1 you could access the cache both transactionally and
non-transactionally.
|
boolean |
useEagerLocking()
Deprecated.
|
TransactionConfiguration |
useEagerLocking(boolean b)
Deprecated.
|
boolean |
useSynchronization() |
public boolean autoCommit()
transactionMode()
== TransactionMode.TRANSACTIONAL)
and transactionAutoCommit is enabled then for single operation transactions
the user doesn't need to manually start a transaction, but a transactions
is injected by the system. Defaults to true.public TransactionConfiguration cacheStopTimeout(long l)
public long cacheStopTimeout()
@Deprecated public boolean eagerLockingSingleNode()
public LockingMode lockingMode()
transactionMode()
public TransactionConfiguration lockingMode(LockingMode lockingMode)
transactionMode()
public boolean syncCommitPhase()
public TransactionConfiguration syncCommitPhase(boolean b)
public boolean syncRollbackPhase()
public TransactionConfiguration syncRollbackPhase(boolean b)
b
- public TransactionManagerLookup transactionManagerLookup()
public TransactionConfiguration transactionManagerLookup(TransactionManagerLookup transactionManagerLookup)
public TransactionSynchronizationRegistryLookup transactionSynchronizationRegistryLookup()
public TransactionMode transactionMode()
@Deprecated public boolean useEagerLocking()
@Deprecated public TransactionConfiguration useEagerLocking(boolean b)
public boolean useSynchronization()
public RecoveryConfiguration recovery()
RecoveryConfigurationBuilder.enabled(boolean)
with false as parameterpublic long reaperWakeUpInterval()
public long completedTxTimeout()
public boolean use1PcForAutoCommitTransactions()
Copyright © 2017 JBoss, a division of Red Hat. All Rights Reserved.