Interface HeartbeatSender
-
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface HeartbeatSender
Functional interface defining a method to send heartbeats with.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CompletableFuture<Void>sendHeartbeat()Send a heartbeat, receiving aCompletableFuturecontaining theInstructionAckonce the heartbeat has been received.
-
-
-
Method Detail
-
sendHeartbeat
CompletableFuture<Void> sendHeartbeat()
Send a heartbeat, receiving aCompletableFuturecontaining theInstructionAckonce the heartbeat has been received.- Returns:
- a
CompletableFuturecontaining theInstructionAckonce the heartbeat has been received
-
-