Package dev.dsf.fhir.client
Interface RetryClient<T>
- All Known Subinterfaces:
FhirWebserviceClient,PreferReturnMinimalWithRetry,PreferReturnOutcomeWithRetry
public interface RetryClient<T>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final longstatic final intstatic final int -
Method Summary
-
Field Details
-
RETRY_ONCE
static final int RETRY_ONCE- See Also:
-
RETRY_FOREVER
static final int RETRY_FOREVER- See Also:
-
FIVE_SECONDS
static final long FIVE_SECONDS- See Also:
-
-
Method Details
-
withRetry
- Returns:
- T
-
withRetry
- Parameters:
nTimes->= 0- Returns:
- T
- Throws:
IllegalArgumentException- if param nTimes is<0
-
withRetry
retries once after a delay of delayMillis ms- Parameters:
delayMillis->= 0- Returns:
- T
- Throws:
IllegalArgumentException- if param delayMillis is<0
-
withRetry
- Parameters:
nTimes->= 0delayMillis->= 0- Returns:
- T
- Throws:
IllegalArgumentException- if param nTimes or delayMillis is<0
-
withRetryForever
- Parameters:
delayMillis->= 0- Returns:
- T
- Throws:
IllegalArgumentException- if param delayMillis is<0
-