Interface SignalCommand.GlobalCommand

All Superinterfaces:
SignalCommand
All Known Implementing Classes:
SignalCommand.ClearOwnerCommand, SignalCommand.SnapshotCommand, SignalCommand.TransactionCommand
Enclosing interface:
SignalCommand

public static sealed interface SignalCommand.GlobalCommand extends SignalCommand permits SignalCommand.ClearOwnerCommand, SignalCommand.TransactionCommand, SignalCommand.SnapshotCommand
A signal command that doesn't target a specific node.
  • Method Details

    • targetNodeId

      default Id targetNodeId()
      Description copied from interface: SignalCommand
      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.
      Specified by:
      targetNodeId in interface SignalCommand
      Returns:
      id of the primary node targeted by this command, not null