Package org.drasyl.event
Class PeerRelayEvent
- java.lang.Object
-
- org.drasyl.event.PeerRelayEvent
-
public abstract class PeerRelayEvent extends Object implements PeerEvent
This event signals that communication with this peer is only possible by relaying messages via a super peer. If there is no connection to a super peer, no communication with this peer is possible.This is an immutable object.
- See Also:
PeerDirectEvent
,NodeOnlineEvent
,NodeOfflineEvent
-
-
Constructor Summary
Constructors Constructor Description PeerRelayEvent()
-
-
-
Method Detail
-
of
public static PeerRelayEvent of(Peer peer)
- Throws:
NullPointerException
- ifpeer
isnull
-
-