Package com.imyeyu.java.thread
Class AsyncRetryExecutor.Task
java.lang.Object
com.imyeyu.java.thread.AsyncRetryExecutor.Task
- Enclosing class:
AsyncRetryExecutor
构造器
- Since:
- 2025-11-06 23:37
- Author:
- 夜雨
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()protected booleanboolean必填回调方法int最大重试次数,-1 为无限重试重试耗尽时的异常回调long重试间隔毫秒数线程名前缀inthashCode()booleanisDaemon()是否设置为守护线程voidsetCallback(Callback callback) 必填回调方法voidsetDaemon(boolean daemon) 是否设置为守护线程voidsetMaxRetry(int maxRetry) 最大重试次数,-1 为无限重试voidsetOnRetryExhausted(CallbackArg<Exception> onRetryExhausted) 重试耗尽时的异常回调voidsetRetryInterval(long retryInterval) 重试间隔毫秒数voidsetThreadNamePrefix(String threadNamePrefix) 线程名前缀toString()
-
Method Details
-
builder
-
getCallback
必填回调方法 -
getMaxRetry
public int getMaxRetry()最大重试次数,-1 为无限重试 -
getRetryInterval
public long getRetryInterval()重试间隔毫秒数 -
getThreadNamePrefix
线程名前缀 -
isDaemon
public boolean isDaemon()是否设置为守护线程 -
getOnRetryExhausted
重试耗尽时的异常回调 -
setCallback
必填回调方法 -
setMaxRetry
public void setMaxRetry(int maxRetry) 最大重试次数,-1 为无限重试 -
setRetryInterval
public void setRetryInterval(long retryInterval) 重试间隔毫秒数 -
setThreadNamePrefix
线程名前缀 -
setDaemon
public void setDaemon(boolean daemon) 是否设置为守护线程 -
setOnRetryExhausted
重试耗尽时的异常回调 -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-