Package org.broadinstitute.http.nio
Class OutOfRetriesException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
org.broadinstitute.http.nio.OutOfRetriesException
- All Implemented Interfaces:
Serializable
Indicates a failure which could be retried but was not because all allowed retries were exhausted.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final int
number of retries attempted before giving upprivate final Duration
total wait time between retries -
Constructor Summary
ConstructorsConstructorDescriptionOutOfRetriesException
(int retries, Duration totalWaitTime, Throwable mostRecentFailureReason) -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
retries
private final int retriesnumber of retries attempted before giving up -
totalWaitTime
total wait time between retries
-
-
Constructor Details
-
OutOfRetriesException
public OutOfRetriesException(int retries, Duration totalWaitTime, Throwable mostRecentFailureReason) - Parameters:
retries
- the number of times the error was retriedtotalWaitTime
- how long we waited between all the given retriesmostRecentFailureReason
- the most recently thrown exception
-
-
Method Details
-
getRetries
public int getRetries()- Returns:
- the number of times this was retried before giving up
-
getTotalWaitTime
- Returns:
- the total amount of wait time between retries before giving up
-