public class TransactionConfiguration extends Object implements Matchable<TransactionConfiguration>, ConfigurationInfo
| Modifier and Type | Field and Description |
|---|---|
static AttributeDefinition<Boolean> |
AUTO_COMMIT |
static AttributeDefinition<Long> |
CACHE_STOP_TIMEOUT |
static AttributeDefinition<Long> |
COMPLETED_TX_TIMEOUT |
static ElementDefinition |
ELEMENT_DEFINTION |
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<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) |
ElementDefinition |
getElementDefinition() |
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 |
matches(TransactionConfiguration other) |
boolean |
notifications() |
long |
reaperWakeUpInterval() |
RecoveryConfiguration |
recovery()
This method allows configuration of the transaction recovery cache.
|
List<ConfigurationInfo> |
subElements() |
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 |
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<Boolean> NOTIFICATIONS
public static final ElementDefinition ELEMENT_DEFINTION
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()public 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 boolean notifications()
TransactionRegistered and
TransactionCompleted) triggered?public AttributeSet attributes()
attributes in interface BaseConfigurationInfoAttributeSet declared by the configuration.public ElementDefinition getElementDefinition()
getElementDefinition in interface BaseConfigurationInfoElementDefinition of the configuration.public List<ConfigurationInfo> subElements()
subElements in interface ConfigurationInfopublic boolean matches(TransactionConfiguration other)
matches in interface Matchable<TransactionConfiguration>Copyright © 2021 JBoss by Red Hat. All rights reserved.