Interface IAS4RetryCallback


public interface IAS4RetryCallback
Callback to be informed on http retries
Since:
0.9.14
Author:
Philip Helger
  • Method Summary

    Modifier and Type
    Method
    Description
    com.helger.commons.state.EContinue
    onBeforeRetry(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 be null.
      sURL - The destination URL to which the transmission fails. May not be null.
      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. Never null.
      Returns:
      EContinue.CONTINUE to continue with the procedure as foreseen, EContinue.BREAK to interrupt resending. May not be null.