Class JobChecker
java.lang.Object
org.mineskin.JobChecker
-
Constructor Summary
ConstructorsConstructorDescriptionJobChecker(MineSkinClient client, JobInfo jobInfo, ScheduledExecutorService executor, int maxAttempts, int initialDelaySeconds, int intervalSeconds) Deprecated.JobChecker(MineSkinClient client, JobInfo jobInfo, ScheduledExecutorService executor, int maxAttempts, int initialDelay, int interval, TimeUnit timeUnit) Deprecated.JobChecker(MineSkinClient client, JobInfo jobInfo, ScheduledExecutorService executor, int maxAttempts, int initialDelay, int interval, TimeUnit timeUnit, boolean useEta) Deprecated.JobChecker(MineSkinClient client, JobInfo jobInfo, IJobCheckOptions options) JobChecker(MineSkinClient client, JobInfo jobInfo, IJobCheckOptions options, Runnable onJobFailure) -
Method Summary
-
Constructor Details
-
JobChecker
-
JobChecker
public JobChecker(MineSkinClient client, JobInfo jobInfo, IJobCheckOptions options, Runnable onJobFailure) -
JobChecker
@Deprecated public JobChecker(MineSkinClient client, JobInfo jobInfo, ScheduledExecutorService executor, int maxAttempts, int initialDelaySeconds, int intervalSeconds) Deprecated. -
JobChecker
@Deprecated public JobChecker(MineSkinClient client, JobInfo jobInfo, ScheduledExecutorService executor, int maxAttempts, int initialDelay, int interval, TimeUnit timeUnit) Deprecated. -
JobChecker
@Deprecated public JobChecker(MineSkinClient client, JobInfo jobInfo, ScheduledExecutorService executor, int maxAttempts, int initialDelay, int interval, TimeUnit timeUnit, boolean useEta) Deprecated.
-
-
Method Details
-
check
Starts checking the job status. Only call this once.- Returns:
- A future that completes when the job is completed or failed, or exceptionally if an error occurs or max attempts is reached.
-