Package io.vrap.rmf.base.client.http
Class RetryPolicyBuilder
java.lang.Object
io.vrap.rmf.base.client.http.RetryPolicyBuilder
-
Constructor Summary
ConstructorDescriptionRetryPolicyBuilder
(int maxRetries, long initialDelay, long maxDelay, List<Integer> statusCodes, List<Class<? extends Throwable>> failures, FailsafeRetryPolicyBuilderOptions fn) -
Method Summary
Modifier and TypeMethodDescriptiondev.failsafe.RetryPolicy<ApiHttpResponse<byte[]>>
build()
static dev.failsafe.Bulkhead<ApiHttpResponse<byte[]>>
bulkhead
(int maxConcurrency) static dev.failsafe.Bulkhead<ApiHttpResponse<byte[]>>
bulkhead
(int maxConcurrency, FailsafeConcurrencyBuilderOptions fn) static dev.failsafe.Bulkhead<ApiHttpResponse<byte[]>>
static dev.failsafe.Bulkhead<ApiHttpResponse<byte[]>>
bulkhead
(int maxConcurrency, Duration maxWaitTime, FailsafeConcurrencyBuilderOptions fn) handleFailures
(List<Class<? extends Throwable>> failures) handleStatusCodes
(List<Integer> statusCodes) initialDelay
(long initialDelay) maxDelay
(long maxDelay) maxRetries
(int maxRetries) static RetryPolicyBuilder
of()
options
(FailsafeRetryPolicyBuilderOptions options) static dev.failsafe.RetryPolicy<ApiHttpResponse<byte[]>>
retry
(int maxRetries, long delay, long maxDelay, FailsafeRetryPolicyBuilderOptions fn) statusCodes
(List<Integer> statusCodes) static dev.failsafe.Timeout<ApiHttpResponse<byte[]>>
static dev.failsafe.Timeout<ApiHttpResponse<byte[]>>
timeout
(Duration duration, FailsafeTimeoutBuilderOptions fn)
-
Constructor Details
-
RetryPolicyBuilder
public RetryPolicyBuilder() -
RetryPolicyBuilder
-
-
Method Details
-
maxRetries
-
initialDelay
-
maxDelay
-
statusCodes
-
failures
-
options
-
build
-
of
-
retry
public static dev.failsafe.RetryPolicy<ApiHttpResponse<byte[]>> retry(int maxRetries, long delay, long maxDelay, FailsafeRetryPolicyBuilderOptions fn) -
timeout
-
timeout
public static dev.failsafe.Timeout<ApiHttpResponse<byte[]>> timeout(Duration duration, FailsafeTimeoutBuilderOptions fn) -
bulkhead
-
bulkhead
public static dev.failsafe.Bulkhead<ApiHttpResponse<byte[]>> bulkhead(int maxConcurrency, Duration maxWaitTime) -
bulkhead
public static dev.failsafe.Bulkhead<ApiHttpResponse<byte[]>> bulkhead(int maxConcurrency, FailsafeConcurrencyBuilderOptions fn) -
bulkhead
public static dev.failsafe.Bulkhead<ApiHttpResponse<byte[]>> bulkhead(int maxConcurrency, Duration maxWaitTime, FailsafeConcurrencyBuilderOptions fn) -
handleFailures
public static FailsafeRetryPolicyBuilderOptions handleFailures(List<Class<? extends Throwable>> failures) -
handleStatusCodes
-