public void handleHeartbeat ( Heartbeat hrtBeat ) { HeartbeatAck hrtBeatAck = ( HeartbeatAck ) this . aspFactoryImpl . messageFactory . createMessage ( MessageClass . ASP_STATE_MAINTENANCE , MessageType . HEARTBEAT_ACK ) ; hrtBeatAck . setHeartbeatData ( hrtBeat . getHeartbeatData ( ) ) ; this . aspFactoryImpl . write ( hrtBeatAck ) ; }
If we receive Heartbeat we send back response