public final class RetryOnErrorCodeCondition extends Object implements RetryCondition
Modifier and Type | Method and Description |
---|---|
static RetryOnErrorCodeCondition |
create(Set<String> retryableErrorCodes) |
static RetryOnErrorCodeCondition |
create(String... retryableErrorCodes) |
boolean |
shouldRetry(RetryPolicyContext context) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
defaultRetryCondition, none, requestSucceeded, requestWillNotBeRetried
public boolean shouldRetry(RetryPolicyContext context)
shouldRetry
in interface RetryCondition
public static RetryOnErrorCodeCondition create(String... retryableErrorCodes)
public static RetryOnErrorCodeCondition create(Set<String> retryableErrorCodes)
Copyright © 2023. All rights reserved.