Class WritableFuture<V>
- java.lang.Object
-
- io.vertigo.datafactory.impl.search.WritableFuture<V>
-
-
Constructor Summary
Constructors Constructor Description WritableFuture()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancancel(boolean mayInterruptIfRunning)voidfail(Exception exception)Mark this execution as failed.Vget()Vget(long timeout, TimeUnit unit)booleanisCancelled()booleanisDone()voidsuccess(V result)Mark this execution as success.
-
-
-
Method Detail
-
isCancelled
public boolean isCancelled()
- Specified by:
isCancelledin interfaceFuture<V>
-
get
public V get() throws InterruptedException, ExecutionException
- 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
-
cancel
public boolean cancel(boolean mayInterruptIfRunning)
-
success
public void success(V result)
Mark this execution as success.- Parameters:
result- Result of execution
-
fail
public void fail(Exception exception)
Mark this execution as failed.- Parameters:
exception- Failure reason
-
-