|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.infinispan.configuration.cache.TransactionConfiguration
public class TransactionConfiguration
Defines transactional (JTA) characteristics of the cache.
Method Summary | |
---|---|
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. |
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. |
RecoveryConfiguration |
recovery()
This method allows configuration of the transaction recovery cache. |
boolean |
syncCommitPhase()
|
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. |
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()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
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 boolean syncCommitPhase()
public TransactionConfiguration syncCommitPhase(boolean b)
public boolean syncRollbackPhase()
public TransactionConfiguration syncRollbackPhase(boolean b)
b
-
public 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 parameter
public boolean use1PcForAutoCommitTransactions()
public String toString()
toString
in class Object
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
|
--> | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |