Class NodeOnlineEvent

java.lang.Object
org.drasyl.event.NodeOnlineEvent
All Implemented Interfaces:
Event, NodeEvent

public class NodeOnlineEvent extends Object
This event signals that the node has successfully registered with the super peer. If a node has been configured with no super peer (e.g. if it is a root node), the event is immediately emitted.

This is an immutable object.

  • Field Details

    • node

      protected final Node node
  • Constructor Details

    • NodeOnlineEvent

      public NodeOnlineEvent(Node node)
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getNode

      public Node getNode()
      Description copied from interface: NodeEvent
      Returns the node to which this event refers.
      Specified by:
      getNode in interface NodeEvent
      Returns:
      the node to which this event refers.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object