| Constructor and Description |
|---|
FlowthingsFuture(Future<T> inner) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
cancel(boolean mayInterruptIfRunning) |
static <S> FlowthingsFuture<S> |
fromException(FlowthingsException e) |
static <S> FlowthingsFuture<S> |
fromResult(S result) |
T |
get() |
T |
get(long timeout,
TimeUnit unit) |
T |
grab()
Works like "get", but returns a sane exception type
|
boolean |
isCancelled() |
boolean |
isDone() |
public static <S> FlowthingsFuture<S> fromResult(S result)
public static <S> FlowthingsFuture<S> fromException(FlowthingsException e)
public boolean cancel(boolean mayInterruptIfRunning)
public boolean isCancelled()
isCancelled in interface Future<T>public T get() throws InterruptedException, ExecutionException
get in interface Future<T>InterruptedExceptionExecutionExceptionpublic T get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException
get in interface Future<T>InterruptedExceptionExecutionExceptionTimeoutExceptionpublic T grab() throws FlowthingsException
FlowthingsExceptionCopyright © 2016. All rights reserved.