Package nz.org.riskscape.engine.sched
Class ExecutionFuture
java.lang.Object
nz.org.riskscape.engine.sched.ExecutionFuture
- All Implemented Interfaces:
Future<nz.org.riskscape.engine.pipeline.ExecutionResult>
-
Constructor Summary
ConstructorDescriptionExecutionFuture
(nz.org.riskscape.engine.output.PipelineJobContext jobContext) -
Method Summary
-
Constructor Details
-
ExecutionFuture
public ExecutionFuture(nz.org.riskscape.engine.output.PipelineJobContext jobContext)
-
-
Method Details
-
cancel
public boolean cancel(boolean mayInterruptIfRunning) -
isCancelled
public boolean isCancelled()- Specified by:
isCancelled
in interfaceFuture<nz.org.riskscape.engine.pipeline.ExecutionResult>
-
isDone
public boolean isDone() -
get
public nz.org.riskscape.engine.pipeline.ExecutionResult get() throws InterruptedException, ExecutionException- Specified by:
get
in interfaceFuture<nz.org.riskscape.engine.pipeline.ExecutionResult>
- Throws:
InterruptedException
ExecutionException
-
get
public nz.org.riskscape.engine.pipeline.ExecutionResult get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException - Specified by:
get
in interfaceFuture<nz.org.riskscape.engine.pipeline.ExecutionResult>
- Throws:
InterruptedException
ExecutionException
TimeoutException
-