Class JobCheckOptions

java.lang.Object
org.mineskin.JobCheckOptions
All Implemented Interfaces:
IJobCheckOptions

public final class JobCheckOptions extends Object implements IJobCheckOptions
Example:
    JobCheckOptions.create()
          .withUseEta()
          .withInterval(RequestInterval.exponential())
          .withMaxAttempts(50)
  • Constructor Details

    • JobCheckOptions

      @Deprecated public JobCheckOptions(ScheduledExecutorService scheduler, RequestInterval interval, int initialDelayMillis, int maxAttempts, boolean useEta)
      Deprecated.
      Parameters:
      scheduler - Executor service to run the job checks - this should be a single-threaded scheduler
      interval - Interval strategy between each request, see RequestInterval
      initialDelayMillis - Initial delay in milliseconds before the first job check, default is 2000
      maxAttempts - Maximum number of attempts to check the job status, default is 10
      useEta - Whether to use the estimated completion time provided by the server to schedule the first check, default is false
    • JobCheckOptions

      @Deprecated public JobCheckOptions(ScheduledExecutorService scheduler, int intervalMillis, int initialDelayMillis, int maxAttempts, boolean useEta)
      Deprecated.
      Parameters:
      scheduler - Executor service to run the job checks - this should be a single-threaded scheduler
      intervalMillis - Interval in milliseconds between each job check, default is 1000
      initialDelayMillis - Initial delay in milliseconds before the first job check, default is 2000
      maxAttempts - Maximum number of attempts to check the job status, default is 10
      useEta - Whether to use the estimated completion time provided by the server to schedule the first check, default is false
    • JobCheckOptions

      @Deprecated public JobCheckOptions(ScheduledExecutorService scheduler, int intervalMillis, int initialDelayMillis, int maxAttempts)
      Deprecated.
  • Method Details