| Modifier and Type | Interface and Description |
|---|---|
interface |
Future<T>
Future is an abstraction to deal with asynchronicity without having to use callbacks directly or blocking threads. |
| Modifier and Type | Class and Description |
|---|---|
class |
Promise<T>
Promise is a Future that provides methods to set its result.
|
| Modifier and Type | Method and Description |
|---|---|
static InterruptHandler |
InterruptHandler.apply(Collection<? extends InterruptHandler> handlers)
Creates an interrupt handle that calls multiple handlers.
|
static InterruptHandler |
InterruptHandler.apply(InterruptHandler h1,
InterruptHandler h2)
Creates an interrupt handler that calls to other handlers.
|
protected InterruptHandler |
Promise.getInterruptHandler() |
| Modifier and Type | Method and Description |
|---|---|
static <T> Promise<T> |
Promise.apply(InterruptHandler handler)
Creates a promise that triggers the provided handler in case it receives an interrupt.
|
static InterruptHandler |
InterruptHandler.apply(InterruptHandler h1,
InterruptHandler h2)
Creates an interrupt handler that calls to other handlers.
|
protected static <T> Promise<T> |
Promise.apply(InterruptHandler h1,
InterruptHandler h2) |
| Modifier and Type | Method and Description |
|---|---|
static InterruptHandler |
InterruptHandler.apply(Collection<? extends InterruptHandler> handlers)
Creates an interrupt handle that calls multiple handlers.
|
static <T> Promise<T> |
Promise.apply(List<? extends InterruptHandler> handlers)
Creates a promise that triggers the provided handlers in case it receives an interrupt.
|
static <T> Promise<T> |
Promise.create(java.util.function.Function<Promise<T>,InterruptHandler> handlerBuilder)
Creates a new promise using a handler builder that it’s based on the promise under creation.
|
Copyright © 2017. All Rights Reserved.