Package org.drasyl.peer
Interface Path
-
public interface Path
Represents a path for sending messages to a specific Peer.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CompletableFuture<Void>
send(Message message)
Sendsmessage
via the defined path.
-
-
-
Method Detail
-
send
CompletableFuture<Void> send(Message message)
Sendsmessage
via the defined path.- Parameters:
message
- the message to be sent- Returns:
- a completed future if the message was successfully processed, otherwise an exceptionally future
-
-