Package org.drasyl.plugin.groups.manager
Class GroupsManagerHandler
java.lang.Object
org.drasyl.pipeline.HandlerAdapter
org.drasyl.pipeline.AddressHandlerAdapter<A>
org.drasyl.pipeline.SimpleInboundHandler<GroupsClientMessage,GroupEvent,CompressedPublicKey>
org.drasyl.plugin.groups.manager.GroupsManagerHandler
- All Implemented Interfaces:
Handler
public class GroupsManagerHandler
extends SimpleInboundHandler<GroupsClientMessage,GroupEvent,CompressedPublicKey>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Do nothing by default, sub-classes may override this method.void
Do nothing by default, sub-classes may override this method.protected void
matchedEventTriggered
(HandlerContext ctx, GroupEvent event, CompletableFuture<Void> future) Is called for each event of typeSimpleInboundHandler
.protected void
matchedRead
(HandlerContext ctx, CompressedPublicKey sender, GroupsClientMessage msg, CompletableFuture<Void> future) Is called for each message of typeSimpleInboundHandler
.Methods inherited from class org.drasyl.pipeline.SimpleInboundHandler
acceptEvent, acceptInbound, eventTriggered, read
Methods inherited from class org.drasyl.pipeline.AddressHandlerAdapter
acceptAddress
Methods inherited from class org.drasyl.pipeline.HandlerAdapter
exceptionCaught, write
-
Constructor Details
-
GroupsManagerHandler
-
-
Method Details
-
handlerAdded
Description copied from class:HandlerAdapter
Do nothing by default, sub-classes may override this method.- Specified by:
handlerAdded
in interfaceHandler
- Overrides:
handlerAdded
in classHandlerAdapter
-
handlerRemoved
Description copied from class:HandlerAdapter
Do nothing by default, sub-classes may override this method.- Specified by:
handlerRemoved
in interfaceHandler
- Overrides:
handlerRemoved
in classHandlerAdapter
-
matchedEventTriggered
protected void matchedEventTriggered(HandlerContext ctx, GroupEvent event, CompletableFuture<Void> future) Description copied from class:SimpleInboundHandler
Is called for each event of typeSimpleInboundHandler
.- Specified by:
matchedEventTriggered
in classSimpleInboundHandler<GroupsClientMessage,
GroupEvent, CompressedPublicKey> - Parameters:
ctx
- handler contextevent
- the eventfuture
- the future of the message
-
matchedRead
protected void matchedRead(HandlerContext ctx, CompressedPublicKey sender, GroupsClientMessage msg, CompletableFuture<Void> future) Description copied from class:SimpleInboundHandler
Is called for each message of typeSimpleInboundHandler
.- Specified by:
matchedRead
in classSimpleInboundHandler<GroupsClientMessage,
GroupEvent, CompressedPublicKey> - Parameters:
ctx
- handler contextsender
- the sender of the messagemsg
- the messagefuture
- the future of the message
-