Class FutureJob<RESULT_TYPE>
java.lang.Object
io.deephaven.enterprise.comm.sched.Job
io.deephaven.enterprise.niowrapper.sched.TimedJob
io.deephaven.enterprise.niowrapper.sched.FutureJob<RESULT_TYPE>
- All Implemented Interfaces:
com.fishlib.base.log.LogOutputAppendable,Future<RESULT_TYPE>
Created by rcaudy on 6/6/14.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class io.deephaven.enterprise.comm.sched.Job
getStateFor, makeStateFor
-
Constructor Details
-
FutureJob
-
FutureJob
-
-
Method Details
-
cancel
public boolean cancel(boolean mayInterruptIfRunning) - Specified by:
cancelin interfaceFuture<RESULT_TYPE>
-
isCancelled
public boolean isCancelled()- Specified by:
isCancelledin interfaceFuture<RESULT_TYPE>
-
isDone
public boolean isDone()- Specified by:
isDonein interfaceFuture<RESULT_TYPE>
-
get
- Specified by:
getin interfaceFuture<RESULT_TYPE>- Throws:
InterruptedExceptionExecutionException
-
get
public RESULT_TYPE get(long timeout, @NotNull @NotNull TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException - Specified by:
getin interfaceFuture<RESULT_TYPE>- Throws:
InterruptedExceptionExecutionExceptionTimeoutException
-
cancelled
public void cancelled()Description copied from class:JobThis method is called if the job is explicitly cancelled before it becomes ready or times out. -
timedOut
public void timedOut()Description copied from class:JobThis method is invoked if the job times out.
-