Package org.drasyl.node.event
Class NodeOnlineEvent
- java.lang.Object
-
- org.drasyl.node.event.NodeOnlineEvent
-
public abstract class NodeOnlineEvent extends Object implements NodeEvent
This event signals that the node is currently connected to a super peer. This means that it can be contacted by other peers connected to the same super peer. In addition, the super peer can assist in establishing direct connections to other peers.If the node has been configured with no super peer, this event will never be emitted.
This is an immutable object.
- See Also:
NodeOfflineEvent
,PeerDirectEvent
,PeerRelayEvent
-
-
Constructor Summary
Constructors Constructor Description NodeOnlineEvent()
-
-
-
Method Detail
-
of
public static NodeOnlineEvent of(Node node)
- Throws:
NullPointerException
- ifnode
isnull
-
-