ST_STATUS setHeartbeatTimes(long heartbeat_ms, long timeout_ms );
Exception setHeartbeatTimes(long heartbeat_ms, long timeout_ms );
ST_OK if the timer values accepted, otherwise ST_ERROR. ST_ERROR can occur for the following reasons:
The DataHub and API provide two heartbeat services to ensure the integrity of the connection:
The timers can be started with startHeartbeatTimers once the respective periods have been set. If a timer is already running when setHeartbeatTimes is called, then that timer is restarted with the new period. If the timer is already running and the specified period is 0, then the timer is stopped.
The timeout timer is automatically reset whenever there is any activity over the connection, including the heartbeat timer message.
Copyright © 1995-2006 by Cogent Real-Time Systems, Inc. All rights reserved.