Class GroupJoinFailedEvent
- java.lang.Object
-
- org.drasyl.node.plugin.groups.client.event.GroupJoinFailedEvent
-
- All Implemented Interfaces:
Event
,GroupEvent
public class GroupJoinFailedEvent extends Object implements GroupEvent
An event that signals, that a joining a specific group has failed.This is an immutable object.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
Group
getGroup()
GroupJoinFailedMessage.Error
getReason()
Runnable
getReJoin()
If this runnable is invoked the plugin tries to re-join thegroup
.int
hashCode()
static GroupJoinFailedEvent
of(Group group, GroupJoinFailedMessage.Error reason, Runnable reJoin)
String
toString()
-
-
-
Method Detail
-
getReason
public GroupJoinFailedMessage.Error getReason()
-
getGroup
public Group getGroup()
- Specified by:
getGroup
in interfaceGroupEvent
-
getReJoin
public Runnable getReJoin()
If this runnable is invoked the plugin tries to re-join thegroup
.- Returns:
- runnable to re-join group
-
of
public static GroupJoinFailedEvent of(Group group, GroupJoinFailedMessage.Error reason, Runnable reJoin)
- Throws:
NullPointerException
- ifgroup
,reason
orreJoin
isnull
-
-