Package com.helger.phase4.client
Interface IAS4RetryCallback
public interface IAS4RetryCallback
Callback to be informed on http retries
- Since:
- 0.9.14
- Author:
- Philip Helger
-
Method Summary
Modifier and TypeMethodDescriptioncom.helger.commons.state.EContinueonBeforeRetry(String sMessageID, String sURL, int nTry, int nMaxTries, long nRetryIntervalMS, Exception ex) Invoked when it is clear that a retry will happen, but before the waiting starts
-
Method Details
-
onBeforeRetry
@Nonnull com.helger.commons.state.EContinue onBeforeRetry(@Nonnull String sMessageID, @Nonnull String sURL, @Nonnegative int nTry, @Nonnegative int nMaxTries, long nRetryIntervalMS, @Nonnull Exception ex) Invoked when it is clear that a retry will happen, but before the waiting starts- Parameters:
sMessageID- The AS4 message ID. May not benull.sURL- The destination URL to which the transmission fails. May not benull.nTry- The current try that will be retried later, 0-based.nMaxTries- The maximum number of tries that will happen. 1-based. So e.g. 2 means that there will be 1 retry: one original try and one retry. If the number is e.g. 11: one original try and 10 retries.nRetryIntervalMS- The milliseconds to be waited before the next retry.ex- The exception that occurred during sending. Usually an IOException. Nevernull.- Returns:
EContinue.CONTINUEto continue with the procedure as foreseen,EContinue.BREAKto interrupt resending. May not benull.
-