I - Type of the payload which is received by the heartbeat targetpublic abstract class HeartbeatReceiver<I> extends Object implements HeartbeatTarget<I>
HeartbeatTarget, which mutes the HeartbeatTarget#requestHeartbeat(ResourceID, I). The extender only has to care about the
receiving logic.| 构造器和说明 |
|---|
HeartbeatReceiver() |
| 限定符和类型 | 方法和说明 |
|---|---|
CompletableFuture<Void> |
requestHeartbeat(ResourceID requestOrigin,
I heartbeatPayload)
Requests a heartbeat from the target.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitreceiveHeartbeatpublic final CompletableFuture<Void> requestHeartbeat(ResourceID requestOrigin, I heartbeatPayload)
HeartbeatTargetrequestHeartbeat 在接口中 HeartbeatTarget<I>requestOrigin - Resource ID identifying the machine issuing the heartbeat request.heartbeatPayload - Payload of the heartbeat request. Null indicates an empty payload.Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.