类 ToRetryRunnable

java.lang.Object
org.coodex.concurrent.components.ToRetryRunnable
所有已实现的接口:
Runnable

public abstract class ToRetryRunnable extends Object implements Runnable
Created by davidoff shen on 2017-04-01.
  • 构造器详细资料

    • ToRetryRunnable

      public ToRetryRunnable(Runnable command, int maxTimes)
  • 方法详细资料

    • run

      public void run()
      指定者:
      run 在接口中 Runnable
    • getMaxTimes

      public int getMaxTimes()
    • getRetryTimes

      public int getRetryTimes()
    • retry

      protected abstract void retry()
    • onFailed

      protected void onFailed()