public final class ExceptionsCondition extends Object implements RetryCondition
| 限定符和类型 | 方法和说明 |
|---|---|
static ExceptionsCondition |
create(Class<? extends Exception>... exceptionsToRetryOn) |
static ExceptionsCondition |
create(Set<Class<? extends Exception>> exceptionsToRetryOn) |
boolean |
shouldRetry(RetryPolicyContext context) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdefaultRetryCondition, none, requestSucceeded, requestWillNotBeRetriedpublic boolean shouldRetry(RetryPolicyContext context)
shouldRetry 在接口中 RetryConditionpublic static ExceptionsCondition create(Set<Class<? extends Exception>> exceptionsToRetryOn)
public static ExceptionsCondition create(Class<? extends Exception>... exceptionsToRetryOn)
Copyright © 2023. All rights reserved.