startHeartbeatTimers

startHeartbeatTimers — starts the heartbeat and timeout timers.

Synopsis

For C++:
ST_STATUS startHeartbeatTimers(); 
void;
 
For Java and C#:
Exception startHeartbeatTimers(); 
void;
 

Returns

For C++:

ST_OK if the timers were successfully started, otherwise ST_ERROR.

Description

This method is used to start the two heartbeat timers. If a timer period has been set to 0, then that heartbeat timer function is disabled. The default behaviour of the onConnectionSuccess method is to make a call to startHeartbeatTimers.

See Also

setHeartbeatTimes, cancelHeartbeatTimers, onConnectionSuccess