Uses of Class
org.infinispan.transaction.xa.GlobalTransaction
Packages that use 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.
Cache
-specific notifications and eventing.invalid reference
Cache
JTA transaction support.
XA transaction support.
-
Uses of GlobalTransaction in org.infinispan.commands
Methods in org.infinispan.commands with parameters of type GlobalTransactionModifier 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) Method parameters in org.infinispan.commands with type arguments of type GlobalTransactionModifier 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
Methods in org.infinispan.context.impl that return GlobalTransactionModifier and TypeMethodDescriptionfinal GlobalTransaction
AbstractTxInvocationContext.getGlobalTransaction()
TxInvocationContext.getGlobalTransaction()
Returns the id of the transaction associated with the current call. -
Uses of GlobalTransaction in org.infinispan.notifications.cachelistener
Methods in org.infinispan.notifications.cachelistener with parameters of type GlobalTransactionModifier 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
Methods in org.infinispan.notifications.cachelistener.cluster that return GlobalTransaction -
Uses of GlobalTransaction in org.infinispan.notifications.cachelistener.event
Methods in org.infinispan.notifications.cachelistener.event that return GlobalTransaction -
Uses of GlobalTransaction in org.infinispan.notifications.cachelistener.event.impl
Methods in org.infinispan.notifications.cachelistener.event.impl that return GlobalTransactionMethods in org.infinispan.notifications.cachelistener.event.impl with parameters of type GlobalTransactionModifier 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
Methods in org.infinispan.partitionhandling.impl that return types with arguments of type GlobalTransactionModifier and TypeMethodDescriptionAvailablePartitionHandlingManager.getPartialTransactions()
PartitionHandlingManager.getPartialTransactions()
PartitionHandlingManagerImpl.getPartialTransactions()
Methods in org.infinispan.partitionhandling.impl with parameters of type GlobalTransactionModifier 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
Methods in org.infinispan.server.hotrod.tx with parameters of type GlobalTransactionModifier 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
Methods in org.infinispan.server.hotrod.tx.table that return GlobalTransactionMethods in org.infinispan.server.hotrod.tx.table with parameters of type GlobalTransactionModifier and TypeMethodDescriptionboolean
TxState.isSameAs
(GlobalTransaction globalTransaction, boolean recoverable, long timeout) Constructors in org.infinispan.server.hotrod.tx.table with parameters of type GlobalTransactionModifierConstructorDescriptionTxState
(GlobalTransaction globalTransaction, boolean recoverable, long timeout, TimeService timeService) -
Uses of GlobalTransaction in org.infinispan.server.hotrod.tx.table.functions
Constructors in org.infinispan.server.hotrod.tx.table.functions with parameters of type GlobalTransactionModifierConstructorDescriptionCreateStateFunction
(GlobalTransaction globalTransaction, boolean recoverable, long timeout) -
Uses of GlobalTransaction in org.infinispan.transaction
Methods in org.infinispan.transaction that return GlobalTransactionModifier and TypeMethodDescriptionTransactionTable.getGlobalTransaction
(jakarta.transaction.Transaction transaction) Methods in org.infinispan.transaction that return types with arguments of type GlobalTransactionModifier and TypeMethodDescriptionTransactionTable.getLocalGlobalTransaction()
TransactionTable.getRemoteGlobalTransaction()
-
Uses of GlobalTransaction in org.infinispan.transaction.impl
Fields in org.infinispan.transaction.impl declared as GlobalTransactionMethods in org.infinispan.transaction.impl that return GlobalTransactionModifier and TypeMethodDescriptionAbstractCacheTransaction.getGlobalTransaction()
TransactionTable.getGlobalTransaction
(jakarta.transaction.Transaction transaction) Methods in org.infinispan.transaction.impl that return types with arguments of type GlobalTransactionModifier and TypeMethodDescriptionTransactionTable.getLocalGlobalTransaction()
TransactionTable.getRemoteGlobalTransaction()
Methods in org.infinispan.transaction.impl with parameters of type GlobalTransactionModifier 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) Method parameters in org.infinispan.transaction.impl with type arguments of type GlobalTransactionModifier and TypeMethodDescriptionTransactionTable.getOrCreateLocalTransaction
(jakarta.transaction.Transaction transaction, boolean implicitTransaction, Supplier<GlobalTransaction> gtxFactory) Similar toTransactionTable.getOrCreateLocalTransaction(Transaction, boolean)
but with a custom global transaction factory.Constructors in org.infinispan.transaction.impl with parameters of type GlobalTransactionModifierConstructorDescriptionAbstractCacheTransaction
(GlobalTransaction tx, int topologyId, long txCreationTime) LocalTransaction
(jakarta.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
Constructors in org.infinispan.transaction.synchronization with parameters of type GlobalTransactionModifierConstructorDescriptionSyncLocalTransaction
(jakarta.transaction.Transaction transaction, GlobalTransaction tx, boolean implicitTransaction, int topologyId, long txCreationTime) -
Uses of GlobalTransaction in org.infinispan.transaction.xa
Methods in org.infinispan.transaction.xa that return GlobalTransactionModifier 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) Methods in org.infinispan.transaction.xa that return types with arguments of type GlobalTransactionModifier and TypeMethodDescriptionSet
<Class<? extends GlobalTransaction>> GlobalTransaction.Externalizer.getTypeClasses()
Methods in org.infinispan.transaction.xa with parameters of type GlobalTransactionModifier and TypeMethodDescriptionTransactionFactory.newLocalTransaction
(jakarta.transaction.Transaction tx, GlobalTransaction gtx, boolean implicitTransaction, int topologyId) abstract LocalTransaction
TransactionFactory.TxFactoryEnum.newLocalTransaction
(jakarta.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) Constructors in org.infinispan.transaction.xa with parameters of type GlobalTransactionModifierConstructorDescriptionLocalXaTransaction
(jakarta.transaction.Transaction transaction, GlobalTransaction tx, boolean implicitTransaction, int topologyId, long txCreationTime) -
Uses of GlobalTransaction in org.infinispan.transaction.xa.recovery
Methods in org.infinispan.transaction.xa.recovery with parameters of type GlobalTransactionModifier 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) Constructors in org.infinispan.transaction.xa.recovery with parameters of type GlobalTransactionModifierConstructorDescriptionRecoveryAwareLocalTransaction
(jakarta.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)