Class VersionedCommitCommand
java.lang.Object
org.infinispan.commands.tx.AbstractTransactionBoundaryCommand
org.infinispan.commands.tx.CommitCommand
org.infinispan.commands.tx.VersionedCommitCommand
- All Implemented Interfaces:
CacheRpcCommand, ReplicableCommand, TopologyAffectedCommand, TracedCommand, TransactionBoundaryCommand, VisitableCommand, VersionAware
The same as a
CommitCommand except that version information is also carried by this command, used by
optimistically transactional caches making use of write skew checking when using IsolationLevel.REPEATABLE_READ.- Since:
- 5.1
- Author:
- Manik Surtani
-
Nested Class Summary
Nested classes/interfaces inherited from interface VisitableCommand
VisitableCommand.LoadType -
Field Summary
Fields inherited from class AbstractTransactionBoundaryCommand
cacheName, globalTx -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetUpdatedVersions(Map<Object, IncrementableEntryVersion> updatedVersions) Returns aNodeVersionrepresenting the Infinispan version in which this command was added.toString()Methods inherited from class CommitCommand
acceptVisitor, addIracMetadata, getIracMetadata, invalidRemoteTxReturnValueMethods inherited from class AbstractTransactionBoundaryCommand
equals, getCacheName, getGlobalTransaction, getOrigin, getTopologyId, hashCode, invokeAsync, isReturnValueExpected, loadType, markTransactionAsRemote, setOrigin, setTopologyId, visitRemoteTransactionMethods inherited from interface ReplicableCommand
getCommandId, isSuccessful, logThrowable, readFrom, writeToMethods inherited from interface TracedCommand
getOperationName, getSpanAttributes, setSpanAttributesMethods inherited from interface VisitableCommand
init
-
Constructor Details
-
VersionedCommitCommand
-
-
Method Details
-
getUpdatedVersions
-
setUpdatedVersions
-
supportedSince
Description copied from interface:ReplicableCommandReturns aNodeVersionrepresenting the Infinispan version in which this command was added. This value is used to ensure that when the cluster contains different Infinispan versions, only commands compatible with the oldest version are transmitted.Abstract classes should not implement this method as the version should be specific to an individual implementation. Similarly, implementations which extend another
ReplicableCommandshould always override this method.- Specified by:
supportedSincein interfaceReplicableCommand- Specified by:
supportedSincein interfaceVersionAware- Overrides:
supportedSincein classCommitCommand- Returns:
- a
NodeVersioncorresponding to the Infinispan version this command was added.
-
toString
- Overrides:
toStringin classCommitCommand
-