@Deprecated public class FutureProcessor extends Object
| Constructor and Description |
|---|
FutureProcessor()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
static <T> Future<T> |
canceledFuture(Class<T> futureType,
Exception cause)
Deprecated.
Method returns a future which is already canceled by the given cause.
|
static <T> CompletableFuture<T> |
toCompletableFuture(Callable<T> callable)
Deprecated.
Method transforms a callable into a CompletableFuture object.
|
public static <T> CompletableFuture<T> toCompletableFuture(Callable<T> callable)
T - callable - the callable to wrap.public static <T> Future<T> canceledFuture(Class<T> futureType, Exception cause)
T - the type of the futurefutureType - the type class of the futurecause - the reason why the future was canceled.Copyright © 2015–2017 openbase.org. All rights reserved.