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 voidDirectConnectionMessageSinkHandler.matchedWrite(HandlerContext ctx, CompressedPublicKey recipient, Message msg, CompletableFuture<Void> future) protected voidLoopbackMessageSinkHandler.matchedWrite(HandlerContext ctx, CompressedPublicKey recipient, Message msg, CompletableFuture<Void> future) protected voidSuperPeerMessageSinkHandler.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 TypeClassDescriptionclassThe default handler context implementation.Methods in org.drasyl.pipeline that return HandlerContextModifier and TypeMethodDescriptionReturns the context object of theHandlerwith the specified name in this pipeline.HandlerContext.fireExceptionCaught(Exception cause) Received anThrowablein one of the inbound operations.Methods in org.drasyl.pipeline with parameters of type HandlerContextModifier and TypeMethodDescriptionvoidHandler.eventTriggered(HandlerContext ctx, Event event, CompletableFuture<Void> future) Gets called if aEventwas emitted.voidHandlerAdapter.eventTriggered(HandlerContext ctx, Event event, CompletableFuture<Void> future) voidSimpleInboundHandler.eventTriggered(HandlerContext ctx, Event event, CompletableFuture<Void> future) voidHandler.exceptionCaught(HandlerContext ctx, Exception cause) Gets called if aExceptionwas thrown.voidHandlerAdapter.exceptionCaught(HandlerContext ctx, Exception cause) voidHandler.handlerAdded(HandlerContext ctx) Gets called after theHandlerwas added to the actual context and it's ready to handle events.voidHandlerAdapter.handlerAdded(HandlerContext ctx) Do nothing by default, sub-classes may override this method.voidHandler.handlerRemoved(HandlerContext ctx) Gets called after theHandlerwas removed from the actual context and it doesn't handle events anymore.voidHandlerAdapter.handlerRemoved(HandlerContext ctx) Do nothing by default, sub-classes may override this method.protected abstract voidSimpleInboundHandler.matchedEventTriggered(HandlerContext ctx, E event, CompletableFuture<Void> future) Is called for each event of typeSimpleInboundHandler.protected abstract voidSimpleInboundHandler.matchedRead(HandlerContext ctx, A sender, I msg, CompletableFuture<Void> future) Is called for each message of typeSimpleInboundHandler.protected abstract voidSimpleDuplexHandler.matchedWrite(HandlerContext ctx, A recipient, O msg, CompletableFuture<Void> future) Is called for each message of typeSimpleDuplexHandler.protected abstract voidSimpleOutboundHandler.matchedWrite(HandlerContext ctx, A recipient, O msg, CompletableFuture<Void> future) Is called for each message of typeSimpleOutboundHandler.voidHandler.read(HandlerContext ctx, Address sender, Object msg, CompletableFuture<Void> future) Gets called if aObjectwas received.voidHandlerAdapter.read(HandlerContext ctx, Address sender, Object msg, CompletableFuture<Void> future) voidSimpleInboundHandler.read(HandlerContext ctx, Address sender, Object msg, CompletableFuture<Void> future) voidHandler.write(HandlerContext ctx, Address recipient, Object msg, CompletableFuture<Void> future) Gets called if aObjectwas send from the application to a recipient.voidHandlerAdapter.write(HandlerContext ctx, Address recipient, Object msg, CompletableFuture<Void> future) voidSimpleDuplexHandler.write(HandlerContext ctx, Address recipient, Object msg, CompletableFuture<Void> future) voidSimpleOutboundHandler.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 voidApplicationMessage2ObjectHolderHandler.matchedEventTriggered(HandlerContext ctx, Event event, CompletableFuture<Void> future) protected voidCodec.matchedEventTriggered(HandlerContext ctx, Event event, CompletableFuture<Void> future) protected voidApplicationMessage2ObjectHolderHandler.matchedRead(HandlerContext ctx, CompressedPublicKey sender, ApplicationMessage msg, CompletableFuture<Void> future) protected voidCodec.matchedRead(HandlerContext ctx, A sender, E msg, CompletableFuture<Void> future) protected voidCodec.matchedWrite(HandlerContext ctx, A recipient, D msg, CompletableFuture<Void> future) protected voidObjectHolder2ApplicationMessageHandler.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 TypeMethodDescriptionvoidGroupsClientHandler.handlerAdded(HandlerContext ctx) voidGroupsClientHandler.handlerRemoved(HandlerContext ctx) protected voidGroupsClientHandler.matchedEventTriggered(HandlerContext ctx, Event event, CompletableFuture<Void> future) protected voidGroupsClientHandler.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 TypeMethodDescriptionvoidGroupsManagerHandler.handlerAdded(HandlerContext ctx) voidGroupsManagerHandler.handlerRemoved(HandlerContext ctx) protected voidGroupsManagerHandler.matchedEventTriggered(HandlerContext ctx, GroupEvent event, CompletableFuture<Void> future) protected voidGroupsManagerHandler.matchedRead(HandlerContext ctx, CompressedPublicKey sender, GroupsClientMessage msg, CompletableFuture<Void> future)