Package com.helger.phase4.client
Interface IAS4RetryCallback
@ChangeNextMajorRelease("Renamed to IAS4OnRetryCallback")
public interface IAS4RetryCallback
Callback to be informed on http retries
- Since:
- 0.9.14
- Author:
- Philip Helger
-
Method Summary
Modifier and TypeMethodDescription@NonNull com.helger.base.state.EContinueonBeforeRetry(@NonNull String sMessageID, @NonNull String sURL, int nTry, int nMaxTries, long nRetryIntervalMS, @NonNull Exception ex) Invoked when it is clear that a retry will happen, but before the waiting starts
-
Method Details
-
onBeforeRetry
@NonNull com.helger.base.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.
-