com.vaadin.signals.

Interface SignalCommand

All Known Subinterfaces:

SignalCommand.ConditionCommand, SignalCommand.GlobalCommand, SignalCommand.KeyCommand, SignalCommand.ScopeOwnerCommand, SignalCommand.ValueCommand

All Known Implementing Classes:

SignalCommand.AdoptAsCommand, SignalCommand.AdoptAtCommand, SignalCommand.ClearCommand, SignalCommand.ClearOwnerCommand, SignalCommand.IncrementCommand, SignalCommand.InsertCommand, SignalCommand.KeyCondition, SignalCommand.LastUpdateCondition, SignalCommand.PositionCondition, SignalCommand.PutCommand, SignalCommand.PutIfAbsentCommand, SignalCommand.RemoveByKeyCommand, SignalCommand.RemoveCommand, SignalCommand.SetCommand, SignalCommand.SnapshotCommand, SignalCommand.TransactionCommand, SignalCommand.ValueCondition

A command triggered from a signal.

  • Method Details

    • commandId

      Id commandId()

      Gets the unique command id used to track the status of this command. For commands that creates a new node, the command id is also used as the node id of the created node.

      Returns:

      the unique command id used to track the status of this command, not null

    • targetNodeId

      Id targetNodeId()

      Gets the id of the signal node that is targeted by this command. Some commands might target multiple nodes e.g. in a parent-child relationship and in that case this node is the primary node. Some commands, implementing SignalCommand.GlobalCommand do not target any specific node and for those commands, Id.ZERO is used as the node id.

      Returns:

      id of the primary node targeted by this command, not null