com.github.ltsopensource.jobtracker.complete.retry
Class DefaultJobRetryTimeGenerator

java.lang.Object
  extended by com.github.ltsopensource.jobtracker.complete.retry.DefaultJobRetryTimeGenerator
All Implemented Interfaces:
JobRetryTimeGenerator

public class DefaultJobRetryTimeGenerator
extends Object
implements JobRetryTimeGenerator

Author:
Robert HG (254963746@qq.com) on 6/28/16.

Constructor Summary
DefaultJobRetryTimeGenerator()
           
 
Method Summary
 long getNextRetryTriggerTime(com.github.ltsopensource.core.domain.Job job, int retryTimes, int retryInterval)
          得到任务重试的下一次时间
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultJobRetryTimeGenerator

public DefaultJobRetryTimeGenerator()
Method Detail

getNextRetryTriggerTime

public long getNextRetryTriggerTime(com.github.ltsopensource.core.domain.Job job,
                                    int retryTimes,
                                    int retryInterval)
Description copied from interface: JobRetryTimeGenerator
得到任务重试的下一次时间

Specified by:
getNextRetryTriggerTime in interface JobRetryTimeGenerator
retryTimes - 已经重试的次数
retryInterval - 重试间隔


Copyright © 2017. All rights reserved.