Class SuperPeerMessageSinkHandler
java.lang.Object
org.drasyl.pipeline.HandlerAdapter
org.drasyl.pipeline.AddressHandlerAdapter<A>
org.drasyl.pipeline.SimpleOutboundHandler<Message,CompressedPublicKey>
 
org.drasyl.peer.connection.pipeline.SuperPeerMessageSinkHandler
- All Implemented Interfaces:
 Handler
- 
Field Summary
Fields - 
Constructor Summary
ConstructorsConstructorDescriptionSuperPeerMessageSinkHandler(PeerChannelGroup channelGroup, PeersManager peersManager)  - 
Method Summary
Modifier and TypeMethodDescriptionprotected voidmatchedWrite(HandlerContext ctx, CompressedPublicKey recipient, Message msg, CompletableFuture<Void> future) Is called for each message of typeSimpleOutboundHandler.Methods inherited from class org.drasyl.pipeline.SimpleOutboundHandler
acceptOutbound, writeMethods inherited from class org.drasyl.pipeline.AddressHandlerAdapter
acceptAddressMethods inherited from class org.drasyl.pipeline.HandlerAdapter
eventTriggered, exceptionCaught, handlerAdded, handlerRemoved, read 
- 
Field Details
- 
SUPER_PEER_SINK_HANDLER
- See Also:
 
 
 - 
 - 
Constructor Details
- 
SuperPeerMessageSinkHandler
 
 - 
 - 
Method Details
- 
matchedWrite
protected void matchedWrite(HandlerContext ctx, CompressedPublicKey recipient, Message msg, CompletableFuture<Void> future) Description copied from class:SimpleOutboundHandlerIs called for each message of typeSimpleOutboundHandler.- Specified by:
 matchedWritein classSimpleOutboundHandler<Message,CompressedPublicKey> - Parameters:
 ctx- handler contextrecipient- the recipient of the messagemsg- the messagefuture- a future for the message
 
 -