@Override public void heartbeat() { super.heartbeat(); if (!getUseThread()) sendPing(); }
@Override public void heartbeat() { super.heartbeat(); if (!getUseThread()) sendPing(); }
@Override public void heartbeat() { super.heartbeat(); if (!getUseThread()) sendPing(); }
public void heartbeat() { super.heartbeat(); if (!getUseThread()) sendPing(); }
@Override public void run() { while (running) { try { sleep(interval); sendPing(); }catch ( InterruptedException ix ) { // Ignore. Probably triggered by a call to stop(). // In the highly unlikely event it was a different trigger, // simply ignore it and continue. }catch ( Exception x ) { log.warn("Unable to send ping from TCP ping thread.",x); } } } }
public void run() { while (running) { try { sleep(interval); sendPing(); }catch ( InterruptedException ix ) { interrupted(); }catch ( Exception x ) { log.warn("Unable to send ping from TCP ping thread.",x); } } } }
@Override public void run() { while (running) { try { sleep(interval); sendPing(); }catch ( InterruptedException ix ) { interrupted(); }catch ( Exception x ) { log.warn("Unable to send ping from TCP ping thread.",x); } } } }
@Override public void run() { while (running) { try { sleep(interval); sendPing(); }catch ( InterruptedException ix ) { // Ignore. Probably triggered by a call to stop(). // In the highly unlikely event it was a different trigger, // simply ignore it and continue. }catch ( Exception x ) { log.warn(sm.getString("tcpPingInterceptor.pingFailed.pingThread"),x); } } } }