public class TransactionConfiguration extends java.lang.Object implements Matchable<TransactionConfiguration>, ConfigurationInfo
| Modifier and Type | Field and Description |
|---|---|
static AttributeDefinition<java.lang.Boolean> |
AUTO_COMMIT |
static AttributeDefinition<java.lang.Long> |
CACHE_STOP_TIMEOUT |
static AttributeDefinition<java.lang.Long> |
COMPLETED_TX_TIMEOUT |
static ElementDefinition |
ELEMENT_DEFINTION |
static AttributeDefinition<LockingMode> |
LOCKING_MODE |
static AttributeDefinition<java.lang.Boolean> |
NOTIFICATIONS |
static AttributeDefinition<java.lang.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<java.lang.Boolean> |
USE_1_PC_FOR_AUTO_COMMIT_TRANSACTIONS |
static AttributeDefinition<java.lang.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(java.lang.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.
|
java.util.List<ConfigurationInfo> |
subElements() |
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.
|
java.lang.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<java.lang.Boolean> AUTO_COMMIT
public static final AttributeDefinition<java.lang.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<java.lang.Boolean> USE_SYNCHRONIZATION
public static final AttributeDefinition<java.lang.Boolean> USE_1_PC_FOR_AUTO_COMMIT_TRANSACTIONS
public static final AttributeDefinition<java.lang.Long> REAPER_WAKE_UP_INTERVAL
public static final AttributeDefinition<java.lang.Long> COMPLETED_TX_TIMEOUT
public static final AttributeDefinition<TransactionProtocol> TRANSACTION_PROTOCOL
public static final AttributeDefinition<java.lang.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()@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()
attributes in interface BaseConfigurationInfoAttributeSet declared by the configuration.public ElementDefinition getElementDefinition()
getElementDefinition in interface BaseConfigurationInfoElementDefinition of the configuration.public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.util.List<ConfigurationInfo> subElements()
subElements in interface ConfigurationInfopublic boolean matches(TransactionConfiguration other)
matches in interface Matchable<TransactionConfiguration>public int hashCode()
hashCode in class java.lang.Object