Class StatusPollingConfiguration

    • Constructor Detail

      • StatusPollingConfiguration

        StatusPollingConfiguration(Duration timeout, Duration pollingPeriod, Boolean ignoreServerError, Boolean ignoreTimeoutExceptions, Duration retryDelayAfterFailure)
    • Method Detail

      • getIgnoreServerError

         final Boolean getIgnoreServerError()

        Whether to ignore 5xx error from Notary API and keep polling status instead of throwing

      • getIgnoreTimeoutExceptions

         final Boolean getIgnoreTimeoutExceptions()

        Whether to ignore timeout exception (HttpRequestTimeoutException, SocketTimeoutException, ConnectTimeoutException) and keep polling status instead of throwing

      • getRetryDelayAfterFailure

         final Duration getRetryDelayAfterFailure()

        Delay to wait after a failure has been ignored (timeout or server error).

        After a failure is ignored we will not respect the pollingPeriod duration but instead the retryDelayAfterFailure one, to avoid bursting the Notary API server while it is clearly having issues.