/** * @since 4.0 */ public void handleException(CDOSession session, int attempt, Exception exception) throws Exception { int max = isRetryingForever() ? Integer.MAX_VALUE : retries; if (attempt > max) { throw exception; } }
/** * @since 4.0 */ public void handleException(CDOSession session, int attempt, Exception exception) throws Exception { int max = isRetryingForever() ? Integer.MAX_VALUE : retries; if (attempt > max) { throw exception; } }
@Override public String toString() { Object arg = isRetryingForever() ? "forever" : retries; return MessageFormat.format("CDORetryExceptionHandler[retries={0}]", arg); //$NON-NLS-1$ } }
@Override public String toString() { Object arg = isRetryingForever() ? "forever" : retries; return MessageFormat.format("CDORetryExceptionHandler[retries={0}]", arg); //$NON-NLS-1$ } }