Package com.jetbrains.notary.extensions
Class StatusPollingConfiguration
-
- All Implemented Interfaces:
public final class StatusPollingConfiguration
-
-
Field Summary
Fields Modifier and Type Field Description private final Durationtimeoutprivate final DurationpollingPeriodprivate final BooleanignoreServerErrorprivate final BooleanignoreTimeoutExceptionsprivate final DurationretryDelayAfterFailure
-
Method Summary
Modifier and Type Method Description final DurationgetTimeout()final DurationgetPollingPeriod()final BooleangetIgnoreServerError()Whether to ignore 5xx error from Notary API and keep polling status instead of throwing final BooleangetIgnoreTimeoutExceptions()Whether to ignore timeout exception (HttpRequestTimeoutException, SocketTimeoutException, ConnectTimeoutException) and keep polling status instead of throwing final DurationgetRetryDelayAfterFailure()Delay to wait after a failure has been ignored (timeout or server error). -
-
Method Detail
-
getTimeout
final Duration getTimeout()
-
getPollingPeriod
final Duration getPollingPeriod()
-
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
pollingPeriodduration but instead theretryDelayAfterFailureone, to avoid bursting the Notary API server while it is clearly having issues.
-
-
-
-