Class RedundancyMessage<T>

java.lang.Object
com.inductiveautomation.ignition.common.messages.RedundancyMessage<T>

public class RedundancyMessage<T> extends Object
Used by the redundancy manager to execute tasks on both redundant nodes, and to pass one-shot messages from the master to the backup. To execute a task on both nodes, use RedundancyManager#executeTask(). To fire a one-shot message from the active node to the inactive node, use RedundancyManager#dispatchOneShotMsg(). Note: if you use a custom class for the payload (such as a class that is only available in a module), a ProtobufSerializable implementation must be provided and registered via MetroProtobufRegistry#register().
  • Constructor Details

    • RedundancyMessage

      public RedundancyMessage(T payload)
  • Method Details

    • getPayload

      public T getPayload()
    • toString

      public String toString()
      Overrides:
      toString in class Object