public void startKeepAliveSender ( String authToken ) { this . token = authToken ; stopKeepAliveSender ( ) ; logger . info ( "Starting keepAlive Sender" ) ; future = scheduler . scheduleAtFixedRate ( new Runnable ( ) { public void run ( ) { sendKeepAliveBridgeMessage ( appId , bridgeId , token , httpClient ) ; } } , 0 , keepAliveInterval , TimeUnit . MILLISECONDS ) ; }
Start keep alive sender .