Uses of Interface
org.drasyl.event.Event
-
Packages that use Event Package Description org.drasyl Core API that includes theDrasylNode
andDrasylConfig
.org.drasyl.event Contains events that inform the application about various states of the drasyl node, incoming communication, or connection type changes.org.drasyl.peer Package contains classes that are used for communicating with other peers.org.drasyl.pipeline Link between application and drasyl overlay network.org.drasyl.pipeline.codec Package contains classes that are used for encoding/decoding objects. -
-
Uses of Event in org.drasyl
Methods in org.drasyl with parameters of type Event Modifier and Type Method Description abstract void
DrasylNode. onEvent(Event event)
Sendsevent
to the application and tells it information about the local node, other peers, connections or incoming messages. -
Uses of Event in org.drasyl.event
Subinterfaces of Event in org.drasyl.event Modifier and Type Interface Description interface
NodeEvent
Events that refer to aNode
.interface
PeerEvent
Events that refer to aPeer
.Classes in org.drasyl.event that implement Event Modifier and Type Class Description class
MessageEvent
This event signals that the node has received a message addressed to it.class
NodeDownEvent
This event signals that the node is shut down.class
NodeNormalTerminationEvent
This events signals that the node has terminated normally.class
NodeOfflineEvent
This event signals that the node is currently not connected to a super peer.class
NodeOnlineEvent
This event signals that the node has successfully registered with the super peer.class
NodeUnrecoverableErrorEvent
This events signals that the node encountered an unrecoverable error.class
NodeUpEvent
This event signals that the node has been started.class
PeerDirectEvent
This event signals that the node has established a direct connection to a peer.class
PeerRelayEvent
This event signals that the node has established a connection via a super peer to a peer. -
Uses of Event in org.drasyl.peer
Constructor parameters in org.drasyl.peer with type arguments of type Event Constructor Description PeersManager(Consumer<Event> eventConsumer, Identity identity)
-
Uses of Event in org.drasyl.pipeline
Methods in org.drasyl.pipeline that return types with arguments of type Event Modifier and Type Method Description io.reactivex.rxjava3.core.Observable<Event>
EmbeddedPipeline. inboundEvents()
Methods in org.drasyl.pipeline with parameters of type Event Modifier and Type Method Description protected boolean
SimpleInboundHandler. acceptEvent(Event msg)
Returnstrue
if the given event should be handled.void
Handler. eventTriggered(HandlerContext ctx, Event event, CompletableFuture<Void> future)
Gets called if aEvent
was emitted.void
HandlerAdapter. eventTriggered(HandlerContext ctx, Event event, CompletableFuture<Void> future)
void
SimpleInboundHandler. eventTriggered(HandlerContext ctx, Event event, CompletableFuture<Void> future)
CompletableFuture<Void>
HandlerContext. fireEventTriggered(Event event, CompletableFuture<Void> future)
Received an event.CompletableFuture<Void>
DefaultPipeline. processInbound(Event event)
CompletableFuture<Void>
Pipeline. processInbound(Event event)
Processes an inbound event by the pipeline.Constructor parameters in org.drasyl.pipeline with type arguments of type Event Constructor Description DrasylPipeline(Consumer<Event> eventConsumer, DrasylConfig config, Identity identity)
-
Uses of Event in org.drasyl.pipeline.codec
Methods in org.drasyl.pipeline.codec with parameters of type Event Modifier and Type Method Description protected void
ApplicationMessage2ObjectHolderHandler. matchedEventTriggered(HandlerContext ctx, Event event, CompletableFuture<Void> future)
protected void
Codec. matchedEventTriggered(HandlerContext ctx, Event event, CompletableFuture<Void> future)
-