/** * Beacon arrival. */ public void beaconArrivalNotify() { if (!probeResponsePending) rescheduleTimer(connectionTimeout); }
/** * Beacon arrival. */ public void beaconArrivalNotify() { if (!probeResponsePending) rescheduleTimer(connectionTimeout); }
/** * Sends echo (state-of-health message) */ private void sendEcho() { synchronized(probeLock) { probeTimeoutDetected = false; probeResponsePending = remoteTransportRevision >= 3; try { new EchoRequest(this).submit(); } catch (IOException ex) { probeResponsePending = false; } rescheduleTimer(CAConstants.CA_ECHO_TIMEOUT); } }
/** * Sends echo (state-of-health message) */ private void sendEcho() { synchronized(probeLock) { probeTimeoutDetected = false; probeResponsePending = remoteTransportRevision >= 3; try { new EchoRequest(this).submit(); } catch (IOException ex) { probeResponsePending = false; } rescheduleTimer(CAConstants.CA_ECHO_TIMEOUT); } }
/** * Called when echo request (state-of-health message) was responed. */ public void echoNotify() { synchronized(probeLock) { if (probeResponsePending) { if (probeTimeoutDetected) { // try again sendEcho(); } else { // transport is responsive probeTimeoutDetected = false; probeResponsePending = false; responsiveTransport(); rescheduleTimer(connectionTimeout); } } } }
/** * Called when echo request (state-of-health message) was responed. */ public void echoNotify() { synchronized(probeLock) { if (probeResponsePending) { if (probeTimeoutDetected) { // try again sendEcho(); } else { // transport is responsive probeTimeoutDetected = false; probeResponsePending = false; responsiveTransport(); rescheduleTimer(connectionTimeout); } } } }