|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IHeartbeatMonitor
Encapsulates operations for setting network heartbeat parameters.
| Field Summary | |
|---|---|
static int |
DEFAULT_ALLOWED_MISSED_COUNT
The default number of allowed missed heartbeats |
static long |
DEFAULT_HEARTBEAT_PERIOD
The default heartbeat period |
| Method Summary | |
|---|---|
int |
getAllowableNetworkHeartbeatMissCount()
Get the number of allowed missed heartbeats before a remote context is deemed to be not available. |
long |
getNetworkHeartbeatPeriod()
Get the heartbeat period in milliseconds. |
void |
setAllowableNetworkHeartbeatMissCount(int allowedHeartbeatMissCount)
Set the allowable number of missed heartbeats from other contexts on the network before that context is deemed to be not available anymore. |
void |
setNetworkHeartbeatPeriod(long periodInMillis)
Set the network heartbeat period. |
| Field Detail |
|---|
static final long DEFAULT_HEARTBEAT_PERIOD
static final int DEFAULT_ALLOWED_MISSED_COUNT
| Method Detail |
|---|
void setNetworkHeartbeatPeriod(long periodInMillis)
As a general rule-of-thumb, the heartbeat period should be small and the allowed heartbeat miss count high. This provides more leniency for not cancelling a context if heartbeats are missed.
periodInMillis - the heartbeat period in millisecondsvoid setAllowableNetworkHeartbeatMissCount(int allowedHeartbeatMissCount)
allowedHeartbeatMissCount - the number of missed heartbeats allowed before a remote
context is deemed to be not availablesetNetworkHeartbeatPeriod(long)long getNetworkHeartbeatPeriod()
int getAllowableNetworkHeartbeatMissCount()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||