public static class AbstractTaskState.RetryImpl extends Object implements TaskState.Retry
| Constructor and Description |
|---|
RetryImpl() |
| Modifier and Type | Method and Description |
|---|---|
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 in interface TaskState.Retrypublic List<Class<? extends Exception>> getExceptionClasses()
TaskState.RetrygetExceptionClasses in interface TaskState.Retrypublic void setExceptionClasses(List<Class<? extends Exception>> exceptionClasses)
TaskState.RetrysetExceptionClasses in interface TaskState.RetryexceptionClasses - exception classpublic double getIntervalSeconds()
TaskState.RetrygetIntervalSeconds in interface TaskState.Retrypublic void setIntervalSeconds(double intervalSeconds)
public int getMaxAttempts()
TaskState.RetrygetMaxAttempts in interface TaskState.Retrypublic void setMaxAttempts(int maxAttempts)
public double getBackoffRate()
TaskState.RetrygetBackoffRate in interface TaskState.Retrypublic void setBackoffRate(double backoffRate)
Copyright © 2023 Seata. All rights reserved.