Class GroupJoinFailedEvent
java.lang.Object
org.drasyl.node.plugin.groups.client.event.GroupJoinFailedEvent
- All Implemented Interfaces:
Event
,GroupEvent
An event that signals, that a joining a specific group has failed.
This is an immutable object.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
abstract GroupJoinFailedMessage.Error
abstract Runnable
If this runnable is invoked the plugin tries to re-join the group.int
hashCode()
static GroupJoinFailedEvent
of
(Group group, GroupJoinFailedMessage.Error reason, Runnable reJoin) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.drasyl.node.plugin.groups.client.event.GroupEvent
getGroup
-
Constructor Details
-
GroupJoinFailedEvent
public GroupJoinFailedEvent()
-
-
Method Details
-
getReason
-
getReJoin
If this runnable is invoked the plugin tries to re-join the group.- Returns:
- runnable to re-join group
-
of
public static GroupJoinFailedEvent of(Group group, GroupJoinFailedMessage.Error reason, Runnable reJoin) - Throws:
NullPointerException
- ifgroup
,reason
orreJoin
isnull
-
hashCode
public int hashCode() -
equals
-