public class TransactionConfiguration extends Object
Modifier and Type | Field and Description |
---|---|
static AttributeDefinition<Boolean> |
AUTO_COMMIT |
static AttributeDefinition<Long> |
CACHE_STOP_TIMEOUT |
static AttributeDefinition<Long> |
COMPLETED_TX_TIMEOUT |
static AttributeDefinition<LockingMode> |
LOCKING_MODE |
static AttributeDefinition<Boolean> |
NOTIFICATIONS |
static AttributeDefinition<Long> |
REAPER_WAKE_UP_INTERVAL |
static AttributeDefinition<TransactionManagerLookup> |
TRANSACTION_MANAGER_LOOKUP |
static AttributeDefinition<TransactionMode> |
TRANSACTION_MODE |
static AttributeDefinition<TransactionProtocol> |
TRANSACTION_PROTOCOL |
static AttributeDefinition<TransactionSynchronizationRegistryLookup> |
TRANSACTION_SYNCHRONIZATION_REGISTRY_LOOKUP |
static AttributeDefinition<Boolean> |
USE_1_PC_FOR_AUTO_COMMIT_TRANSACTIONS |
static AttributeDefinition<Boolean> |
USE_SYNCHRONIZATION |
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 |
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()
Deprecated.
since 9.0. no longer supported
|
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()
Deprecated.
since 9.0. no longer supported
|
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)
Deprecated.
since 9.0. The transaction manager is only looked up once, during cache startup.
|
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 |
useSynchronization() |
public static final AttributeDefinition<Boolean> AUTO_COMMIT
public static final AttributeDefinition<Long> CACHE_STOP_TIMEOUT
public static final AttributeDefinition<LockingMode> LOCKING_MODE
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_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()
public LockingMode lockingMode()
transactionMode()
public TransactionConfiguration lockingMode(LockingMode lockingMode)
transactionMode()
@Deprecated public boolean syncCommitPhase()
@Deprecated public TransactionConfiguration syncCommitPhase(boolean b)
@Deprecated public boolean syncRollbackPhase()
@Deprecated public TransactionConfiguration syncRollbackPhase(boolean b)
public TransactionManagerLookup transactionManagerLookup()
@Deprecated public TransactionConfiguration transactionManagerLookup(TransactionManagerLookup transactionManagerLookup)
public TransactionSynchronizationRegistryLookup transactionSynchronizationRegistryLookup()
public TransactionMode transactionMode()
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 © 2017 JBoss, a division of Red Hat. All rights reserved.