Uses of Interface
org.drasyl.pipeline.HandlerContext
Packages that use HandlerContext
Package
Description
Link between application and drasyl overlay network.
Package contains classes that are used for encoding/decoding objects.
-
Uses of HandlerContext in org.drasyl.peer.connection.pipeline
Methods in org.drasyl.peer.connection.pipeline with parameters of type HandlerContextModifier and TypeMethodDescriptionprotected void
DirectConnectionMessageSinkHandler.matchedWrite
(HandlerContext ctx, CompressedPublicKey recipient, Message msg, CompletableFuture<Void> future) protected void
LoopbackMessageSinkHandler.matchedWrite
(HandlerContext ctx, CompressedPublicKey recipient, Message msg, CompletableFuture<Void> future) protected void
SuperPeerMessageSinkHandler.matchedWrite
(HandlerContext ctx, CompressedPublicKey recipient, Message msg, CompletableFuture<Void> future) -
Uses of HandlerContext in org.drasyl.pipeline
Classes in org.drasyl.pipeline that implement HandlerContextModifier and TypeClassDescriptionclass
The default handler context implementation.Methods in org.drasyl.pipeline that return HandlerContextModifier and TypeMethodDescriptionReturns the context object of theHandler
with the specified name in this pipeline.HandlerContext.fireExceptionCaught
(Exception cause) Received anThrowable
in one of the inbound operations.Methods in org.drasyl.pipeline with parameters of type HandlerContextModifier and TypeMethodDescriptionvoid
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) void
Handler.exceptionCaught
(HandlerContext ctx, Exception cause) Gets called if aException
was thrown.void
HandlerAdapter.exceptionCaught
(HandlerContext ctx, Exception cause) void
Handler.handlerAdded
(HandlerContext ctx) Gets called after theHandler
was added to the actual context and it's ready to handle events.void
HandlerAdapter.handlerAdded
(HandlerContext ctx) Do nothing by default, sub-classes may override this method.void
Handler.handlerRemoved
(HandlerContext ctx) Gets called after theHandler
was removed from the actual context and it doesn't handle events anymore.void
HandlerAdapter.handlerRemoved
(HandlerContext ctx) Do nothing by default, sub-classes may override this method.protected abstract void
SimpleInboundHandler.matchedEventTriggered
(HandlerContext ctx, E event, CompletableFuture<Void> future) Is called for each event of typeSimpleInboundHandler
.protected abstract void
SimpleInboundHandler.matchedRead
(HandlerContext ctx, A sender, I msg, CompletableFuture<Void> future) Is called for each message of typeSimpleInboundHandler
.protected abstract void
SimpleDuplexHandler.matchedWrite
(HandlerContext ctx, A recipient, O msg, CompletableFuture<Void> future) Is called for each message of typeSimpleDuplexHandler
.protected abstract void
SimpleOutboundHandler.matchedWrite
(HandlerContext ctx, A recipient, O msg, CompletableFuture<Void> future) Is called for each message of typeSimpleOutboundHandler
.void
Handler.read
(HandlerContext ctx, Address sender, Object msg, CompletableFuture<Void> future) Gets called if aObject
was received.void
HandlerAdapter.read
(HandlerContext ctx, Address sender, Object msg, CompletableFuture<Void> future) void
SimpleInboundHandler.read
(HandlerContext ctx, Address sender, Object msg, CompletableFuture<Void> future) void
Handler.write
(HandlerContext ctx, Address recipient, Object msg, CompletableFuture<Void> future) Gets called if aObject
was send from the application to a recipient.void
HandlerAdapter.write
(HandlerContext ctx, Address recipient, Object msg, CompletableFuture<Void> future) void
SimpleDuplexHandler.write
(HandlerContext ctx, Address recipient, Object msg, CompletableFuture<Void> future) void
SimpleOutboundHandler.write
(HandlerContext ctx, Address recipient, Object msg, CompletableFuture<Void> future) -
Uses of HandlerContext in org.drasyl.pipeline.codec
Methods in org.drasyl.pipeline.codec with parameters of type HandlerContextModifier and TypeMethodDescriptionprotected void
ApplicationMessage2ObjectHolderHandler.matchedEventTriggered
(HandlerContext ctx, Event event, CompletableFuture<Void> future) protected void
Codec.matchedEventTriggered
(HandlerContext ctx, Event event, CompletableFuture<Void> future) protected void
ApplicationMessage2ObjectHolderHandler.matchedRead
(HandlerContext ctx, CompressedPublicKey sender, ApplicationMessage msg, CompletableFuture<Void> future) protected void
Codec.matchedRead
(HandlerContext ctx, A sender, E msg, CompletableFuture<Void> future) protected void
Codec.matchedWrite
(HandlerContext ctx, A recipient, D msg, CompletableFuture<Void> future) protected void
ObjectHolder2ApplicationMessageHandler.matchedWrite
(HandlerContext ctx, CompressedPublicKey recipient, ObjectHolder msg, CompletableFuture<Void> future) -
Uses of HandlerContext in org.drasyl.plugin.groups.client
Methods in org.drasyl.plugin.groups.client with parameters of type HandlerContextModifier and TypeMethodDescriptionvoid
GroupsClientHandler.handlerAdded
(HandlerContext ctx) void
GroupsClientHandler.handlerRemoved
(HandlerContext ctx) protected void
GroupsClientHandler.matchedEventTriggered
(HandlerContext ctx, Event event, CompletableFuture<Void> future) protected void
GroupsClientHandler.matchedRead
(HandlerContext ctx, CompressedPublicKey sender, GroupsServerMessage msg, CompletableFuture<Void> future) -
Uses of HandlerContext in org.drasyl.plugin.groups.manager
Methods in org.drasyl.plugin.groups.manager with parameters of type HandlerContextModifier and TypeMethodDescriptionvoid
GroupsManagerHandler.handlerAdded
(HandlerContext ctx) void
GroupsManagerHandler.handlerRemoved
(HandlerContext ctx) protected void
GroupsManagerHandler.matchedEventTriggered
(HandlerContext ctx, GroupEvent event, CompletableFuture<Void> future) protected void
GroupsManagerHandler.matchedRead
(HandlerContext ctx, CompressedPublicKey sender, GroupsClientMessage msg, CompletableFuture<Void> future)