@NotThreadSafe public final class ProxyMasterSync extends Object implements HeartbeatExecutor
Constructor and Description |
---|
ProxyMasterSync(Address address,
MasterClientContext context,
long startTimeMs)
Creates a new instance of
ProxyMasterSync . |
Modifier and Type | Method and Description |
---|---|
void |
close()
Cleans up any resources used by the heartbeat executor.
|
void |
heartbeat(long timeLimitMs)
Heartbeats to the primary master node.
|
public ProxyMasterSync(Address address, MasterClientContext context, long startTimeMs)
ProxyMasterSync
.address
- the proxy addresscontext
- the communication contextstartTimeMs
- start time of this instancepublic void heartbeat(long timeLimitMs)
heartbeat
in interface HeartbeatExecutor
timeLimitMs
- time limit in milliseconds this heartbeat should not exceed when runningpublic void close()
HeartbeatExecutor
close
in interface HeartbeatExecutor
close
in interface Closeable
close
in interface AutoCloseable
Copyright © 2023. All Rights Reserved.