Package org.infinispan.transaction.impl
Class RemoteTransaction
java.lang.Object
org.infinispan.transaction.impl.AbstractCacheTransaction
org.infinispan.transaction.impl.RemoteTransaction
- All Implemented Interfaces:
CacheTransaction
- Direct Known Subclasses:
RecoveryAwareRemoteTransaction
Defines the state of a remotely originated transaction.
- Since:
- 4.0
- Author:
- Mircea.Markus@jboss.com
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.infinispan.transaction.xa.CacheTransaction
CacheTransaction.TransactionCompletedListener
-
Field Summary
Fields inherited from class org.infinispan.transaction.impl.AbstractCacheTransaction
affectedKeys, lookedUpEntries, modifications, topologyId, tx
-
Constructor Summary
ConstructorDescriptionRemoteTransaction
(List<org.infinispan.commands.write.WriteCommand> modifications, GlobalTransaction tx, int topologyId, long txCreationTime) RemoteTransaction
(GlobalTransaction tx, int topologyId, long txCreationTime) -
Method Summary
Modifier and TypeMethodDescriptionfinal CompletableFuture
<Void> enterSynchronizationAsync
(CompletableFuture<Void> releaseFuture) boolean
int
hashCode()
int
void
putLookedUpEntries
(Map<Object, CacheEntry> entries) void
putLookedUpEntry
(Object key, CacheEntry e) void
setLookedUpEntriesTopology
(int lookedUpEntriesTopology) void
setStateTransferFlag
(Flag stateTransferFlag) toString()
Methods inherited from class org.infinispan.transaction.impl.AbstractCacheTransaction
addAffectedKey, addAllAffectedKeys, addBackupLockForKey, addListener, addVersionRead, checkIfRolledBack, cleanupBackupLocks, clearLockedKeys, clearLookedUpEntries, forEachBackupLock, forEachLock, freezeModifications, getAffectedKeys, getAllModifications, getBackupLockedKeys, getCreationTime, getGlobalTransaction, getLockedKeys, getLookedUpEntries, getModifications, getReleaseFutureForKey, getReleaseFutureForKeys, getStateTransferFlag, getTopologyId, getUpdatedEntryVersions, getVersionsRead, hasModifications, isFromStateTransfer, isMarkedForRollback, lookupEntry, markForRollback, notifyOnTransactionFinished, ownsLock, registerLockedKey, removeBackupLock, removeBackupLocks, removeLookedUpEntry, setModifications, setUpdatedEntryVersions
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.infinispan.transaction.xa.CacheTransaction
hasModification
-
Constructor Details
-
RemoteTransaction
public RemoteTransaction(List<org.infinispan.commands.write.WriteCommand> modifications, GlobalTransaction tx, int topologyId, long txCreationTime) -
RemoteTransaction
-
-
Method Details
-
setStateTransferFlag
- Specified by:
setStateTransferFlag
in classAbstractCacheTransaction
-
putLookedUpEntry
-
putLookedUpEntries
-
equals
-
hashCode
public int hashCode() -
toString
-
setLookedUpEntriesTopology
public void setLookedUpEntriesTopology(int lookedUpEntriesTopology) -
lookedUpEntriesTopology
public int lookedUpEntriesTopology() -
enterSynchronizationAsync
public final CompletableFuture<Void> enterSynchronizationAsync(CompletableFuture<Void> releaseFuture)
-