maxRetries = !localSideInitialized.get() ? policy.getMaxInitialConnectAttempts() : policy.getMaxReconnectAttempts(); } else { maxRetries = !foreignSideInitialized.get() ? policy.getMaxInitialConnectAttempts() : policy.getMaxReconnectAttempts(); if (attempt > 0) { try { long nextDelay = policy.getNextDelay(attempt); LOG.debug("Bridge reconnect attempt {} waiting {}ms before next attempt.", attempt, nextDelay); Thread.sleep(nextDelay);
final int maxRetries = jmsConnector.getReconnectionPolicy().getMaxSendRetries(); Thread.sleep(jmsConnector.getReconnectionPolicy().getNextDelay(attempt)); } catch(InterruptedException e) { break;
maxRetries = !localSideInitialized.get() ? policy.getMaxInitialConnectAttempts() : policy.getMaxReconnectAttempts(); } else { maxRetries = !foreignSideInitialized.get() ? policy.getMaxInitialConnectAttempts() : policy.getMaxReconnectAttempts(); if (attempt > 0) { try { long nextDelay = policy.getNextDelay(attempt); LOG.debug("Bridge reconnect attempt {} waiting {}ms before next attempt.", attempt, nextDelay); Thread.sleep(nextDelay);
final int maxRetries = jmsConnector.getReconnectionPolicy().getMaxSendRetries(); Thread.sleep(jmsConnector.getReconnectionPolicy().getNextDelay(attempt)); } catch(InterruptedException e) { break;
maxRetries = !localSideInitialized.get() ? policy.getMaxInitialConnectAttempts() : policy.getMaxReconnectAttempts(); } else { maxRetries = !foreignSideInitialized.get() ? policy.getMaxInitialConnectAttempts() : policy.getMaxReconnectAttempts(); if (attempt > 0) { try { long nextDelay = policy.getNextDelay(attempt); LOG.debug("Bridge reconnect attempt {} waiting {}ms before next attempt.", attempt, nextDelay); Thread.sleep(nextDelay);
final int maxRetries = jmsConnector.getReconnectionPolicy().getMaxSendRetries(); Thread.sleep(jmsConnector.getReconnectionPolicy().getNextDelay(attempt)); } catch(InterruptedException e) { break;
maxRetries = !localSideInitialized.get() ? policy.getMaxInitialConnectAttempts() : policy.getMaxReconnectAttempts(); } else { maxRetries = !foreignSideInitialized.get() ? policy.getMaxInitialConnectAttempts() : policy.getMaxReconnectAttempts(); if (attempt > 0) { try { long nextDelay = policy.getNextDelay(attempt); LOG.debug("Bridge reconnect attempt {} waiting {}ms before next attempt.", attempt, nextDelay); Thread.sleep(nextDelay);
final int maxRetries = jmsConnector.getReconnectionPolicy().getMaxSendRetries(); Thread.sleep(jmsConnector.getReconnectionPolicy().getNextDelay(attempt)); } catch(InterruptedException e) { break;