Package org.drasyl.plugin.groups.client
Class GroupsClientHandler
java.lang.Object
org.drasyl.pipeline.HandlerAdapter
org.drasyl.pipeline.AddressHandlerAdapter<A>
org.drasyl.pipeline.SimpleInboundHandler<GroupsServerMessage,Event,CompressedPublicKey>
org.drasyl.plugin.groups.client.GroupsClientHandler
- All Implemented Interfaces:
Handler
public class GroupsClientHandler
extends SimpleInboundHandler<GroupsServerMessage,Event,CompressedPublicKey>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidDo nothing by default, sub-classes may override this method.voidDo nothing by default, sub-classes may override this method.protected voidmatchedEventTriggered(HandlerContext ctx, Event event, CompletableFuture<Void> future) Is called for each event of typeSimpleInboundHandler.protected voidmatchedRead(HandlerContext ctx, CompressedPublicKey sender, GroupsServerMessage msg, CompletableFuture<Void> future) Is called for each message of typeSimpleInboundHandler.Methods inherited from class org.drasyl.pipeline.SimpleInboundHandler
acceptEvent, acceptInbound, eventTriggered, readMethods inherited from class org.drasyl.pipeline.AddressHandlerAdapter
acceptAddressMethods inherited from class org.drasyl.pipeline.HandlerAdapter
exceptionCaught, write
-
Constructor Details
-
GroupsClientHandler
-
-
Method Details
-
handlerAdded
Description copied from class:HandlerAdapterDo nothing by default, sub-classes may override this method.- Specified by:
handlerAddedin interfaceHandler- Overrides:
handlerAddedin classHandlerAdapter
-
handlerRemoved
Description copied from class:HandlerAdapterDo nothing by default, sub-classes may override this method.- Specified by:
handlerRemovedin interfaceHandler- Overrides:
handlerRemovedin classHandlerAdapter
-
matchedEventTriggered
protected void matchedEventTriggered(HandlerContext ctx, Event event, CompletableFuture<Void> future) Description copied from class:SimpleInboundHandlerIs called for each event of typeSimpleInboundHandler.- Specified by:
matchedEventTriggeredin classSimpleInboundHandler<GroupsServerMessage,Event, CompressedPublicKey> - Parameters:
ctx- handler contextevent- the eventfuture- the future of the message
-
matchedRead
protected void matchedRead(HandlerContext ctx, CompressedPublicKey sender, GroupsServerMessage msg, CompletableFuture<Void> future) Description copied from class:SimpleInboundHandlerIs called for each message of typeSimpleInboundHandler.- Specified by:
matchedReadin classSimpleInboundHandler<GroupsServerMessage,Event, CompressedPublicKey> - Parameters:
ctx- handler contextsender- the sender of the messagemsg- the messagefuture- the future of the message
-