- 所有已实现的接口:
Runnable
public abstract class ToRetryRunnable
extends Object
implements Runnable
Created by davidoff shen on 2017-04-01.
-
-
方法概要
int
int
protected void
protected abstract void
void
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
构造器详细资料
-
ToRetryRunnable
public ToRetryRunnable(Runnable command,
int maxTimes)
-
方法详细资料
-
-
getMaxTimes
public int getMaxTimes()
-
getRetryTimes
public int getRetryTimes()
-
retry
protected abstract void retry()
-
onFailed
protected void onFailed()