public class TransactionConfiguration extends Object implements Matchable<TransactionConfiguration>
Modifier and Type | Method and Description |
---|---|
AttributeSet |
attributes() |
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 obj) |
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.
|
boolean |
notifications() |
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)
Deprecated.
The syncRollbackPhase setting can no longer be modified at runtime. It must be the same on all nodes.
|
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)
Deprecated.
The syncRollbackPhase setting can no longer be modified at runtime. It must be the same on all nodes.
|
String |
toString() |
TransactionManagerLookup |
transactionManagerLookup()
Configure Transaction manager lookup directly using an instance of TransactionManagerLookup.
|
TransactionConfiguration |
transactionManagerLookup(TransactionManagerLookup transactionManagerLookup) |
TransactionMode |
transactionMode() |
TransactionProtocol |
transactionProtocol() |
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 static final AttributeDefinition<Boolean> AUTO_COMMIT
public static final AttributeDefinition<Long> CACHE_STOP_TIMEOUT
public static final AttributeDefinition<Boolean> EAGER_LOCKING_SINGLE_NODE
public static final AttributeDefinition<LockingMode> LOCKING_MODE
public static final AttributeDefinition<Boolean> SYNC_COMMIT_PHASE
public static final AttributeDefinition<Boolean> SYNC_ROLLBACK_PHASE
public static final AttributeDefinition<TransactionManagerLookup> TRANSACTION_MANAGER_LOOKUP
public static final AttributeDefinition<TransactionSynchronizationRegistryLookup> TRANSACTION_SYNCHRONIZATION_REGISTRY_LOOKUP
public static final AttributeDefinition<TransactionMode> TRANSACTION_MODE
public static final AttributeDefinition<Boolean> USE_EAGER_LOCKING
public static final AttributeDefinition<Boolean> USE_SYNCHRONIZATION
public static final AttributeDefinition<Boolean> USE_1_PC_FOR_AUTO_COMMIT_TRANSACTIONS
public static final AttributeDefinition<Long> REAPER_WAKE_UP_INTERVAL
public static final AttributeDefinition<Long> COMPLETED_TX_TIMEOUT
public static final AttributeDefinition<TransactionProtocol> TRANSACTION_PROTOCOL
public static final AttributeDefinition<Boolean> NOTIFICATIONS
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()
@Deprecated public TransactionConfiguration syncCommitPhase(boolean b)
public boolean syncRollbackPhase()
@Deprecated public TransactionConfiguration syncRollbackPhase(boolean 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()
public TransactionProtocol transactionProtocol()
public boolean notifications()
TransactionRegistered
and
TransactionCompleted
) triggered?public AttributeSet attributes()
Copyright © 2018 JBoss, a division of Red Hat. All rights reserved.