public interface EBFuture<Result,Error>
Future
Used in async job invocations. Can be used to detect if task is running or
finished. Caller can cancel the task or skip current backoff waiting interval.
Created by dusanklinec on 21.07.16.Modifier and Type | Method and Description |
---|---|
void |
cancel()
Triggers cancellation of the task.
|
boolean |
isDone()
Returns true if async task finished its execution.
|
boolean |
isRunning()
Returns true if async task is still running.
|
void |
runNow()
If task is currently waiting in a backoff interval, this interrupts waiting and
immediately executes the task - skipping the waiting interval.
|
boolean isRunning()
boolean isDone()
void cancel()
void runNow()
Copyright © 2016. All rights reserved.