|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A continuous pulse from client to server that gives the information that the connection is alive and the server is up.
Method Summary | |
int |
getMaxRetries()
Returns the maximum number of retries this heart beat attempts after a first connection failure before declaring the connection or the server as dead. |
long |
getPulsePeriod()
Returns the period of time in milliseconds between two heart beats |
void |
start()
Starts the heart beat |
void |
stop()
Stops the heart beat |
Method Detail |
public void start() throws java.io.IOException
java.io.IOException
- If there are problems contacting the serverstop()
public void stop() throws java.io.IOException
java.io.IOException
- If there are problems contacting the serverstart()
public long getPulsePeriod()
MX4JRemoteConstants.CONNECTION_HEARTBEAT_PERIOD
,
getMaxRetries()
public int getMaxRetries()
MX4JRemoteConstants.CONNECTION_HEARTBEAT_RETRIES
,
getPulsePeriod()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |