Class HelixFuture<V>
java.lang.Object
com.helixframework.concurrency.executor.HelixFuture<V>
- Type Parameters:
V- return type
- All Implemented Interfaces:
Future<V>
Future that copies the current
HelixContext and MDC from the calling thread
onto the executing thread.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
HelixFuture
-
-
Method Details
-
cancel
public boolean cancel(boolean mayInterruptIfRunning) -
isCancelled
public boolean isCancelled()- Specified by:
isCancelledin interfaceFuture<V>
-
isDone
public boolean isDone() -
get
- Specified by:
getin interfaceFuture<V>- Throws:
InterruptedExceptionExecutionException
-
get
public V get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException - Specified by:
getin interfaceFuture<V>- Throws:
InterruptedExceptionExecutionExceptionTimeoutException
-