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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanabstract GroupJoinFailedMessage.Errorabstract RunnableIf this runnable is invoked the plugin tries to re-join the group.inthashCode()static GroupJoinFailedEventof(Group group, GroupJoinFailedMessage.Error reason, Runnable reJoin) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods 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,reasonorreJoinisnull
-
hashCode
public int hashCode() -
equals
-