Package org.drasyl.pipeline
Interface OutboundHandler
-
- All Superinterfaces:
Handler
- All Known Implementing Classes:
DuplexHandler
,OutboundHandlerAdapter
,SimpleOutboundHandler
,SimplexDuplexHandler
public interface OutboundHandler extends Handler
Handler
which will get notified for IO-outbound-operations.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
write(HandlerContext ctx, ApplicationMessage msg, CompletableFuture<Void> future)
Gets called if aApplicationMessage
was send from the application to a recipient.-
Methods inherited from interface org.drasyl.pipeline.Handler
handlerAdded, handlerRemoved
-
-
-
-
Method Detail
-
write
void write(HandlerContext ctx, ApplicationMessage msg, CompletableFuture<Void> future)
Gets called if aApplicationMessage
was send from the application to a recipient.- Parameters:
ctx
- handler contextmsg
- the messagefuture
- a future for the message
-
-