public abstract class ToRetryRunnable extends Object implements Runnable
ToRetryRunnable(Runnable command, int maxTimes)
int
getMaxTimes()
getRetryTimes()
protected void
onFailed()
protected abstract void
retry()
void
run()
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public ToRetryRunnable(Runnable command, int maxTimes)
public void run()
run
Runnable
public int getMaxTimes()
public int getRetryTimes()
protected abstract void retry()
protected void onFailed()
Copyright © 2018. All rights reserved.