Class CommitCommand

    • Method Detail

      • acceptVisitor

        public Object acceptVisitor​(InvocationContext ctx,
                                    Visitor visitor)
                             throws Throwable
        Description copied from interface: VisitableCommand
        Accept a visitor, and return the result of accepting this visitor.
        Parameters:
        ctx - invocation context
        visitor - visitor to accept
        Returns:
        arbitrary return value
        Throws:
        Throwable - in the event of problems
      • invalidRemoteTxReturnValue

        protected Object invalidRemoteTxReturnValue()
        Description copied from class: AbstractTransactionBoundaryCommand
        This is what is returned to remote callers when an invalid RemoteTransaction is encountered. Can happen if a remote node propagates a transactional call to the current node, and the current node has no idea of the transaction in question. Can happen during rehashing, when ownerships are reassigned during a transactions. Returning a null usually means the transactional command succeeded.
        Overrides:
        invalidRemoteTxReturnValue in class AbstractTransactionBoundaryCommand
        Returns:
        return value to respond to a remote caller with if the transaction context is invalid.
      • getCommandId

        public byte getCommandId()
        Description copied from interface: ReplicableCommand
        Used by marshallers to convert this command into an id for streaming.
        Returns:
        the method id of this command. This is compatible with pre-2.2.0 MethodCall ids.