public static class AbstractTaskState.RetryImpl extends Object implements TaskState.Retry
| 构造器和说明 |
|---|
RetryImpl() |
| 限定符和类型 | 方法和说明 |
|---|---|
double |
getBackoffRate()
get BackoffRate, default 1
|
List<Class<? extends Exception>> |
getExceptionClasses()
exception classes
|
List<String> |
getExceptions()
exceptions
|
double |
getIntervalSeconds()
getIntervalSeconds
|
int |
getMaxAttempts()
getMaxAttempts
|
void |
setBackoffRate(double backoffRate) |
void |
setExceptionClasses(List<Class<? extends Exception>> exceptionClasses)
set exception classes
|
void |
setExceptions(List<String> exceptions) |
void |
setIntervalSeconds(double intervalSeconds) |
void |
setMaxAttempts(int maxAttempts) |
public List<String> getExceptions()
TaskState.RetrygetExceptions 在接口中 TaskState.Retrypublic List<Class<? extends Exception>> getExceptionClasses()
TaskState.RetrygetExceptionClasses 在接口中 TaskState.Retrypublic void setExceptionClasses(List<Class<? extends Exception>> exceptionClasses)
TaskState.RetrysetExceptionClasses 在接口中 TaskState.Retrypublic double getIntervalSeconds()
TaskState.RetrygetIntervalSeconds 在接口中 TaskState.Retrypublic void setIntervalSeconds(double intervalSeconds)
public int getMaxAttempts()
TaskState.RetrygetMaxAttempts 在接口中 TaskState.Retrypublic void setMaxAttempts(int maxAttempts)
public double getBackoffRate()
TaskState.RetrygetBackoffRate 在接口中 TaskState.Retrypublic void setBackoffRate(double backoffRate)
Copyright © 2022 Seata. All rights reserved.