Class TotalOrderVersionedCommitCommand
- java.lang.Object
-
- org.infinispan.commands.tx.AbstractTransactionBoundaryCommand
-
- org.infinispan.commands.tx.CommitCommand
-
- org.infinispan.commands.tx.VersionedCommitCommand
-
- org.infinispan.commands.tx.totalorder.TotalOrderVersionedCommitCommand
-
- All Implemented Interfaces:
CacheRpcCommand
,ReplicableCommand
,TopologyAffectedCommand
,TransactionBoundaryCommand
,VisitableCommand
public class TotalOrderVersionedCommitCommand extends VersionedCommitCommand
Command corresponding to the 2nd phase of 2PC. Used in Total Order based protocol when versioned entries are needed- Since:
- 5.3
- Author:
- Pedro Ruivo
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.infinispan.commands.VisitableCommand
VisitableCommand.LoadType
-
-
Field Summary
Fields Modifier and Type Field Description static byte
COMMAND_ID
-
Constructor Summary
Constructors Constructor Description TotalOrderVersionedCommitCommand(ByteString cacheName)
TotalOrderVersionedCommitCommand(ByteString cacheName, GlobalTransaction gtx)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte
getCommandId()
Used by marshallers to convert this command into an id for streaming.-
Methods inherited from class org.infinispan.commands.tx.VersionedCommitCommand
getUpdatedVersions, readFrom, setUpdatedVersions, toString, writeTo
-
Methods inherited from class org.infinispan.commands.tx.CommitCommand
acceptVisitor, invalidRemoteTxReturnValue
-
Methods inherited from class org.infinispan.commands.tx.AbstractTransactionBoundaryCommand
canBlock, equals, getCacheName, getGlobalTransaction, getOrigin, getTopologyId, hashCode, init, invokeAsync, isReturnValueExpected, loadType, markTransactionAsRemote, perform, setOrigin, setTopologyId, visitRemoteTransaction
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.infinispan.commands.ReplicableCommand
invoke, isSuccessful
-
Methods inherited from interface org.infinispan.commands.VisitableCommand
ignoreCommandOnStatus, shouldInvoke
-
-
-
-
Field Detail
-
COMMAND_ID
public static final byte COMMAND_ID
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
TotalOrderVersionedCommitCommand
public TotalOrderVersionedCommitCommand(ByteString cacheName, GlobalTransaction gtx)
-
TotalOrderVersionedCommitCommand
public TotalOrderVersionedCommitCommand(ByteString cacheName)
-
-
Method Detail
-
getCommandId
public byte getCommandId()
Description copied from interface:ReplicableCommand
Used by marshallers to convert this command into an id for streaming.- Specified by:
getCommandId
in interfaceReplicableCommand
- Overrides:
getCommandId
in classVersionedCommitCommand
- Returns:
- the method id of this command. This is compatible with pre-2.2.0 MethodCall ids.
-
-