Class GroupLeftEvent

java.lang.Object
org.drasyl.plugin.groups.client.event.GroupLeftEvent
All Implemented Interfaces:
Event, GroupEvent

public class GroupLeftEvent extends Object implements GroupEvent
An event that signals that this node has left a group. (Maybe got also kicked by the group manager)

This is an immutable object.

  • Constructor Details

    • GroupLeftEvent

      public GroupLeftEvent(Group group, Runnable reJoin)
  • Method Details

    • getGroup

      public Group getGroup()
      Specified by:
      getGroup in interface GroupEvent
    • hashCode

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

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

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

      public Runnable getReJoin()
      If this runnable is invoked the plugin tries to re-join the group.
      Returns:
      runnable to re-join group