Future utilities.
| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static <R> GrizzlyFuture | Returns: aFuture, which has a preset result.the result result)Create a |
| public static <R> GrizzlyFuture | Returns: aFuture, which has a preset failure.the failure error)Create a |
| public static <R> FutureImpl | Returns: thread-safeFutureImpl implementation.Returns thread-safe |
| public static <R> FutureImpl | Returns: non thread-safeFutureImpl implementation.Returns non thread-safe |
| public static <R> void | notifyCancel(final FutureImpl<R>
FutureImpl to be notifiedCompletionHandler to be notifiedComplete passed |
| public static <R> void | notifyFailure(final FutureImpl<R>
FutureImpl to be notifiedCompletionHandler to be notifiedthe error. error)Complete passed |
| public static <R> void | notifyResult(final FutureImpl<R>
FutureImpl to be notifiedCompletionHandler to be notifiedthe result result)Complete passed |
| public static <A, B> CompletionHandler | Returns: CompletionHandler, which may serve as a bridge for passed FutureImpl. All the notifications
coming to the returned CompletionHandler will be adapted using GenericAdapter and passed to
the FutureImpl.Creates |
| public static <A, B> CompletionHandler | Returns: CompletionHandler, which may serve as a bridge for passed FutureImpl and
CompletionHandler. All the notifications coming to the returned CompletionHandler will be
adapted using GenericAdapter and passed to the FutureImpl and CompletionHandler.Creates |
| public static <R> CompletionHandler | Returns: CompletionHandler, which may serve as a bridge for passed FutureImpl. All the notifications
coming to the returned CompletionHandler will be passed to the passed FutureImpl.Creates |
| public static <R> CompletionHandler | Returns: CompletionHandler, which may serve as a bridge for passed FutureImpl and
CompletionHandler objects. All the notifications coming to the returned CompletionHandler will be
passed to the FutureImpl and CompletionHandler passed as parameters.Creates |
| Futures | back to summary |
|---|---|
| public Futures() | |
| createReadyFuture | back to summary |
|---|---|
| public static <R> GrizzlyFuture Create a
| |
| createReadyFuture | back to summary |
|---|---|
| public static <R> GrizzlyFuture Create a
| |
| createSafeFuture | back to summary |
|---|---|
| public static <R> FutureImpl Returns thread-safe
| |
| createUnsafeFuture | back to summary |
|---|---|
| public static <R> FutureImpl Returns non thread-safe
| |
| notifyCancel | back to summary |
|---|---|
| public static <R> void notifyCancel(final FutureImpl<R> future, final CompletionHandler<E> completionHandler) Complete passed
| |
| notifyFailure | back to summary |
|---|---|
| public static <R> void notifyFailure(final FutureImpl<R> future, final CompletionHandler<E> completionHandler, final Throwable error) Complete passed
| |
| notifyResult | back to summary |
|---|---|
| public static <R> void notifyResult(final FutureImpl<R> future, final CompletionHandler<R> completionHandler, final R result) Complete passed
| |
| toAdaptedCompletionHandler | back to summary |
|---|---|
| public static <A, B> CompletionHandler Creates
| |
| toAdaptedCompletionHandler | back to summary |
|---|---|
| public static <A, B> CompletionHandler Creates
| |
| toCompletionHandler | back to summary |
|---|---|
| public static <R> CompletionHandler Creates
| |
| toCompletionHandler | back to summary |
|---|---|
| public static <R> CompletionHandler Creates
| |
| Modifier and Type | Field and Description |
|---|---|
| private final FutureImpl |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | cancelled()
Overrides org. Implements org. The operation was cancelled. |
| public void | completed(E result)
Overrides org. Implements org. The operation was completed. |
| public void | failed(final Throwable throwable)
Overrides org. Implements org. The operation was failed. |
| future | back to summary |
|---|---|
| private final FutureImpl<E> future | |
| FutureToCompletionHandler | back to summary |
|---|---|
| public FutureToCompletionHandler(FutureImpl<E> future) | |
| cancelled | back to summary |
|---|---|
| public void cancelled() Overrides org. Implements org. Doc from org. The operation was cancelled.
| |
| completed | back to summary |
|---|---|
| public void completed(E result) Overrides org. Implements org. Doc from org. The operation was completed.
| |
| failed | back to summary |
|---|---|
| public void failed(final Throwable throwable) Overrides org. Implements org. Doc from org. The operation was failed.
| |