Uses of Class
org.infinispan.transaction.xa.GlobalTransaction
Package
Description
Commands that operate on the cache, either locally or remotely.
This package contains different context implementations, selected dynamically based on the type of invocation.
Infinispan Extended Statistics.
Cache
-specific notifications and eventing.Cache
-specific listener eventsJTA transaction support.
XA transaction support.
-
Uses of GlobalTransaction in org.infinispan.commands
Modifier and TypeMethodDescriptionorg.infinispan.commands.remote.ClusteredGetAllCommand
CommandsFactory.buildClusteredGetAllCommand
(List<?> keys, long flagsBitSet, GlobalTransaction gtx) Builds a ClusteredGetAllCommand, which is a remote lookup commandorg.infinispan.commands.remote.ClusteredGetAllCommand
CommandsFactoryImpl.buildClusteredGetAllCommand
(List<?> keys, long flagsBitSet, GlobalTransaction gtx) org.infinispan.commands.tx.CommitCommand
CommandsFactory.buildCommitCommand
(GlobalTransaction gtx) Builds a CommitCommandorg.infinispan.commands.tx.CommitCommand
CommandsFactoryImpl.buildCommitCommand
(GlobalTransaction gtx) org.infinispan.commands.control.LockControlCommand
CommandsFactory.buildLockControlCommand
(Object key, long flagsBitSet, GlobalTransaction gtx) Same asCommandsFactory.buildLockControlCommand(Collection, long, GlobalTransaction)
but for locking a single key vs a collection of keys.org.infinispan.commands.control.LockControlCommand
CommandsFactory.buildLockControlCommand
(Collection<?> keys, long flagsBitSet, GlobalTransaction gtx) Builds a LockControlCommand to control explicit remote lockingorg.infinispan.commands.control.LockControlCommand
CommandsFactoryImpl.buildLockControlCommand
(Object key, long flagsBitSet, GlobalTransaction gtx) org.infinispan.commands.control.LockControlCommand
CommandsFactoryImpl.buildLockControlCommand
(Collection<?> keys, long flagsBitSet, GlobalTransaction gtx) org.infinispan.commands.tx.PrepareCommand
CommandsFactory.buildPrepareCommand
(GlobalTransaction gtx, List<org.infinispan.commands.write.WriteCommand> modifications, boolean onePhaseCommit) Builds a PrepareCommandorg.infinispan.commands.tx.PrepareCommand
CommandsFactoryImpl.buildPrepareCommand
(GlobalTransaction gtx, List<org.infinispan.commands.write.WriteCommand> modifications, boolean onePhaseCommit) org.infinispan.commands.tx.RollbackCommand
CommandsFactory.buildRollbackCommand
(GlobalTransaction gtx) Builds a RollbackCommandorg.infinispan.commands.tx.RollbackCommand
CommandsFactoryImpl.buildRollbackCommand
(GlobalTransaction gtx) org.infinispan.commands.remote.recovery.TxCompletionNotificationCommand
CommandsFactory.buildTxCompletionNotificationCommand
(XidImpl xid, GlobalTransaction globalTransaction) Builds aTxCompletionNotificationCommand
.org.infinispan.commands.remote.recovery.TxCompletionNotificationCommand
CommandsFactoryImpl.buildTxCompletionNotificationCommand
(XidImpl xid, GlobalTransaction globalTransaction) org.infinispan.commands.tx.VersionedCommitCommand
CommandsFactory.buildVersionedCommitCommand
(GlobalTransaction gtx) Builds a VersionedCommitCommandorg.infinispan.commands.tx.VersionedCommitCommand
CommandsFactoryImpl.buildVersionedCommitCommand
(GlobalTransaction gtx) org.infinispan.commands.tx.VersionedPrepareCommand
CommandsFactory.buildVersionedPrepareCommand
(GlobalTransaction gtx, List<org.infinispan.commands.write.WriteCommand> modifications, boolean onePhase) Builds a VersionedPrepareCommandorg.infinispan.commands.tx.VersionedPrepareCommand
CommandsFactoryImpl.buildVersionedPrepareCommand
(GlobalTransaction gtx, List<org.infinispan.commands.write.WriteCommand> modifications, boolean onePhase) Modifier and TypeMethodDescriptionorg.infinispan.commands.remote.CheckTransactionRpcCommand
CommandsFactory.buildCheckTransactionRpcCommand
(Collection<GlobalTransaction> globalTransactions) org.infinispan.commands.remote.CheckTransactionRpcCommand
CommandsFactoryImpl.buildCheckTransactionRpcCommand
(Collection<GlobalTransaction> globalTransactions) -
Uses of GlobalTransaction in org.infinispan.context.impl
Modifier and TypeMethodDescriptionfinal GlobalTransaction
AbstractTxInvocationContext.getGlobalTransaction()
TxInvocationContext.getGlobalTransaction()
Returns the id of the transaction associated with the current call. -
Uses of GlobalTransaction in org.infinispan.extendedstats
Modifier and TypeMethodDescriptionfinal void
CacheStatisticManager.add
(ExtendedStatistic stat, double value, GlobalTransaction globalTransaction, boolean local) Adds a value to a statistic.final void
CacheStatisticManager.beginTransaction
(GlobalTransaction globalTransaction, boolean local) Signals the start of a transaction.final void
CacheStatisticManager.increment
(ExtendedStatistic stat, GlobalTransaction globalTransaction, boolean local) Increments the statistic value.final void
CacheStatisticManager.markAsWriteTransaction
(GlobalTransaction globalTransaction, boolean local) Marks the transaction as a write transaction (instead of a read only transaction)final void
CacheStatisticManager.onPrepareCommand
(GlobalTransaction globalTransaction, boolean local) Invoked when aPrepareCommand
is received for a transaction.final void
CacheStatisticManager.setTransactionOutcome
(boolean commit, GlobalTransaction globalTransaction, boolean local) Sets the transaction outcome to commit or rollback, depending if the transaction has commit successfully or not respectively.final void
CacheStatisticManager.terminateTransaction
(GlobalTransaction globalTransaction, boolean local, boolean remote) Signals the ending of a transaction. -
Uses of GlobalTransaction in org.infinispan.notifications.cachelistener
Modifier and TypeMethodDescriptionCacheNotifier.notifyTransactionCompleted
(GlobalTransaction transaction, boolean successful, InvocationContext ctx) Notifies all registered listeners of a transaction completion event.CacheNotifierImpl.notifyTransactionCompleted
(GlobalTransaction transaction, boolean successful, InvocationContext ctx) CacheNotifier.notifyTransactionRegistered
(GlobalTransaction globalTransaction, boolean isOriginLocal) Notifies all registered listeners of a transaction registration event.CacheNotifierImpl.notifyTransactionRegistered
(GlobalTransaction globalTransaction, boolean isOriginLocal) -
Uses of GlobalTransaction in org.infinispan.notifications.cachelistener.cluster
-
Uses of GlobalTransaction in org.infinispan.notifications.cachelistener.event
-
Uses of GlobalTransaction in org.infinispan.notifications.cachelistener.event.impl
Modifier and TypeMethodDescriptionvoid
EventImpl.setTransactionId
(GlobalTransaction transaction) Deprecated, for removal: This API element is subject to removal in a future version.Since 12.0, will be removed in 15.0 -
Uses of GlobalTransaction in org.infinispan.partitionhandling.impl
Modifier and TypeMethodDescriptionAvailablePartitionHandlingManager.getPartialTransactions()
PartitionHandlingManager.getPartialTransactions()
PartitionHandlingManagerImpl.getPartialTransactions()
Modifier and TypeMethodDescriptionboolean
AvailablePartitionHandlingManager.addPartialCommit1PCTransaction
(GlobalTransaction globalTransaction, Collection<Address> affectedNodes, Collection<Object> lockedKeys, List<org.infinispan.commands.write.WriteCommand> modifications) boolean
PartitionHandlingManager.addPartialCommit1PCTransaction
(GlobalTransaction globalTransaction, Collection<Address> affectedNodes, Collection<Object> lockedKeys, List<org.infinispan.commands.write.WriteCommand> modifications) Adds a partially committed transaction.boolean
PartitionHandlingManagerImpl.addPartialCommit1PCTransaction
(GlobalTransaction globalTransaction, Collection<Address> affectedNodes, Collection<Object> lockedKeys, List<org.infinispan.commands.write.WriteCommand> modifications) boolean
AvailablePartitionHandlingManager.addPartialCommit2PCTransaction
(GlobalTransaction globalTransaction, Collection<Address> affectedNodes, Collection<Object> lockedKeys, Map<Object, IncrementableEntryVersion> newVersions) boolean
PartitionHandlingManager.addPartialCommit2PCTransaction
(GlobalTransaction globalTransaction, Collection<Address> affectedNodes, Collection<Object> lockedKeys, Map<Object, IncrementableEntryVersion> newVersions) Adds a partially committed transaction.boolean
PartitionHandlingManagerImpl.addPartialCommit2PCTransaction
(GlobalTransaction globalTransaction, Collection<Address> affectedNodes, Collection<Object> lockedKeys, Map<Object, IncrementableEntryVersion> newVersions) boolean
AvailablePartitionHandlingManager.addPartialRollbackTransaction
(GlobalTransaction globalTransaction, Collection<Address> affectedNodes, Collection<Object> lockedKeys) boolean
PartitionHandlingManager.addPartialRollbackTransaction
(GlobalTransaction globalTransaction, Collection<Address> affectedNodes, Collection<Object> lockedKeys) Adds a partially aborted transaction.boolean
PartitionHandlingManagerImpl.addPartialRollbackTransaction
(GlobalTransaction globalTransaction, Collection<Address> affectedNodes, Collection<Object> lockedKeys) boolean
AvailablePartitionHandlingManager.canRollbackTransactionAfterOriginatorLeave
(GlobalTransaction globalTransaction) boolean
PartitionHandlingManager.canRollbackTransactionAfterOriginatorLeave
(GlobalTransaction globalTransaction) It checks if the transaction can be aborted when the originator leaves the cluster.boolean
PartitionHandlingManagerImpl.canRollbackTransactionAfterOriginatorLeave
(GlobalTransaction globalTransaction) boolean
AvailablePartitionHandlingManager.isTransactionPartiallyCommitted
(GlobalTransaction globalTransaction) boolean
PartitionHandlingManager.isTransactionPartiallyCommitted
(GlobalTransaction globalTransaction) It checks if the transaction resources (for example locks) can be released.boolean
PartitionHandlingManagerImpl.isTransactionPartiallyCommitted
(GlobalTransaction globalTransaction) -
Uses of GlobalTransaction in org.infinispan.server.hotrod.tx
Modifier and TypeMethodDescriptionboolean
ServerTransactionOriginatorChecker.isOriginatorMissing
(GlobalTransaction gtx) boolean
ServerTransactionOriginatorChecker.isOriginatorMissing
(GlobalTransaction gtx, Collection<Address> liveMembers) int
PrepareCoordinator.onePhaseCommitRemoteTransaction
(GlobalTransaction gtx, List<org.infinispan.commands.write.WriteCommand> modifications) Commits a remote 1PC transaction that is already in MARK_COMMIT statefinal void
PrepareCoordinator.rollbackRemoteTransaction
(GlobalTransaction gtx) Rollbacks a transaction that is remove in all the cluster members. -
Uses of GlobalTransaction in org.infinispan.server.hotrod.tx.table
Modifier and TypeMethodDescriptionboolean
TxState.isSameAs
(GlobalTransaction globalTransaction, boolean recoverable, long timeout) ModifierConstructorDescriptionTxState
(GlobalTransaction globalTransaction, boolean recoverable, long timeout, TimeService timeService) -
Uses of GlobalTransaction in org.infinispan.server.hotrod.tx.table.functions
ModifierConstructorDescriptionCreateStateFunction
(GlobalTransaction globalTransaction, boolean recoverable, long timeout) -
Uses of GlobalTransaction in org.infinispan.transaction
Modifier and TypeMethodDescriptionTransactionTable.getGlobalTransaction
(javax.transaction.Transaction transaction) Modifier and TypeMethodDescriptionTransactionTable.getLocalGlobalTransaction()
TransactionTable.getRemoteGlobalTransaction()
-
Uses of GlobalTransaction in org.infinispan.transaction.impl
Modifier and TypeMethodDescriptionAbstractCacheTransaction.getGlobalTransaction()
TransactionTable.getGlobalTransaction
(javax.transaction.Transaction transaction) Modifier and TypeMethodDescriptionTransactionTable.getLocalGlobalTransaction()
TransactionTable.getRemoteGlobalTransaction()
Modifier and TypeMethodDescriptionboolean
TransactionTable.containRemoteTx
(GlobalTransaction globalTransaction) boolean
TransactionTable.containsLocalTx
(GlobalTransaction globalTransaction) TransactionTable.getCompletedTransactionStatus
(GlobalTransaction gtx) TransactionTable.getLocalTransaction
(GlobalTransaction txId) Looks up a LocalTransaction given a GlobalTransaction.TransactionTable.getOrCreateRemoteTransaction
(GlobalTransaction globalTx, List<org.infinispan.commands.write.WriteCommand> modifications) Returns an existing remote transaction or creates one if none exists.TransactionTable.getOrCreateRemoteTransaction
(GlobalTransaction globalTx, List<org.infinispan.commands.write.WriteCommand> modifications, int topologyId) TransactionTable.getRemoteTransaction
(GlobalTransaction txId) Returns theRemoteTransaction
associated with the supplied transaction id.boolean
ClusteredTransactionOriginatorChecker.isOriginatorMissing
(GlobalTransaction gtx) boolean
ClusteredTransactionOriginatorChecker.isOriginatorMissing
(GlobalTransaction gtx, Collection<Address> liveMembers) boolean
TransactionOriginatorChecker.isOriginatorMissing
(GlobalTransaction gtx) boolean
TransactionOriginatorChecker.isOriginatorMissing
(GlobalTransaction gtx, Collection<Address> liveMembers) boolean
TransactionTable.isTransactionCompleted
(GlobalTransaction gtx) void
TransactionTable.markTransactionCompleted
(GlobalTransaction gtx, boolean successful) With the current state transfer implementation it is possible for a transaction to be prepared several times on a remote node.void
TransactionTable.remoteTransactionCommitted
(GlobalTransaction gtx, boolean onePc) Removes theRemoteTransaction
corresponding to the given tx.void
TransactionTable.remoteTransactionPrepared
(GlobalTransaction gtx) void
TransactionTable.remoteTransactionRollback
(GlobalTransaction gtx) final RemoteTransaction
TransactionTable.removeRemoteTransaction
(GlobalTransaction txId) Modifier and TypeMethodDescriptionTransactionTable.getOrCreateLocalTransaction
(javax.transaction.Transaction transaction, boolean implicitTransaction, Supplier<GlobalTransaction> gtxFactory) Similar toTransactionTable.getOrCreateLocalTransaction(Transaction, boolean)
but with a custom global transaction factory.ModifierConstructorDescriptionAbstractCacheTransaction
(GlobalTransaction tx, int topologyId, long txCreationTime) LocalTransaction
(javax.transaction.Transaction transaction, GlobalTransaction tx, boolean implicitTransaction, int topologyId, long txCreationTime) RemoteTransaction
(List<org.infinispan.commands.write.WriteCommand> modifications, GlobalTransaction tx, int topologyId, long txCreationTime) RemoteTransaction
(GlobalTransaction tx, int topologyId, long txCreationTime) -
Uses of GlobalTransaction in org.infinispan.transaction.synchronization
ModifierConstructorDescriptionSyncLocalTransaction
(javax.transaction.Transaction transaction, GlobalTransaction tx, boolean implicitTransaction, int topologyId, long txCreationTime) -
Uses of GlobalTransaction in org.infinispan.transaction.xa
Modifier and TypeMethodDescriptionCacheTransaction.getGlobalTransaction()
Returns the transaction identifier.TransactionFactory.newGlobalTransaction
(Address addr, boolean remote) abstract GlobalTransaction
TransactionFactory.TxFactoryEnum.newGlobalTransaction
(Address addr, boolean remote, VersionGenerator clusterIdGenerator, boolean clustered) GlobalTransaction.Externalizer.readObject
(ObjectInput input) Modifier and TypeMethodDescriptionSet<Class<? extends GlobalTransaction>>
GlobalTransaction.Externalizer.getTypeClasses()
Modifier and TypeMethodDescriptionTransactionFactory.newLocalTransaction
(javax.transaction.Transaction tx, GlobalTransaction gtx, boolean implicitTransaction, int topologyId) abstract LocalTransaction
TransactionFactory.TxFactoryEnum.newLocalTransaction
(javax.transaction.Transaction tx, GlobalTransaction gtx, boolean implicitTransaction, int topologyId, long txCreationTime) TransactionFactory.newRemoteTransaction
(List<org.infinispan.commands.write.WriteCommand> modifications, GlobalTransaction gtx, int topologyId) TransactionFactory.newRemoteTransaction
(org.infinispan.commands.write.WriteCommand[] modifications, GlobalTransaction tx, int topologyId) TransactionFactory.newRemoteTransaction
(GlobalTransaction tx, int topologyId) abstract RemoteTransaction
TransactionFactory.TxFactoryEnum.newRemoteTransaction
(List<org.infinispan.commands.write.WriteCommand> modifications, GlobalTransaction tx, int topologyId, long txCreationTime) TransactionFactory.TxFactoryEnum.newRemoteTransaction
(org.infinispan.commands.write.WriteCommand[] modifications, GlobalTransaction tx, int topologyId, long txCreationTime) TransactionFactory.TxFactoryEnum.newRemoteTransaction
(GlobalTransaction tx, int topologyId, long txCreationTime) void
GlobalTransaction.Externalizer.writeObject
(ObjectOutput output, GlobalTransaction gtx) ModifierConstructorDescriptionLocalXaTransaction
(javax.transaction.Transaction transaction, GlobalTransaction tx, boolean implicitTransaction, int topologyId, long txCreationTime) -
Uses of GlobalTransaction in org.infinispan.transaction.xa.recovery
Modifier and TypeMethodDescriptionRecoveryAwareTransactionTable.getRemoteTransaction
(GlobalTransaction txId) boolean
RecoveryManager.isTransactionPrepared
(GlobalTransaction globalTx) Checks both internal state and transaction table's state for the given tx.boolean
RecoveryManagerImpl.isTransactionPrepared
(GlobalTransaction globalTx) void
RecoveryAwareTransactionTable.remoteTransactionCommitted
(GlobalTransaction gtx, boolean onePc) void
RecoveryAwareTransactionTable.remoteTransactionPrepared
(GlobalTransaction gtx) Marks the transaction as prepared.void
RecoveryAwareTransactionTable.remoteTransactionRollback
(GlobalTransaction gtx) RecoveryManager.removeRecoveryInformation
(Collection<Address> where, XidImpl xid, GlobalTransaction gtx, boolean fromCluster) Removes from the specified nodes (or all nodes if the value of 'where' is null) the recovery information associated with these Xids.RecoveryManagerImpl.removeRecoveryInformation
(Collection<Address> lockOwners, XidImpl xid, GlobalTransaction gtx, boolean fromCluster) ModifierConstructorDescriptionRecoveryAwareLocalTransaction
(javax.transaction.Transaction transaction, GlobalTransaction tx, boolean implicitTransaction, int topologyId, long txCreationTime) RecoveryAwareRemoteTransaction
(List<org.infinispan.commands.write.WriteCommand> modifications, GlobalTransaction tx, int topologyId, long txCreationTime)