public final class ThriftFutures extends Object
ThriftCompletableFuture and ThriftListenableFuture.| Modifier and Type | Method and Description |
|---|---|
static <T> ThriftCompletableFuture<T> |
failedCompletedFuture(Exception e)
Returns a new
ThriftCompletableFuture instance that has an exception set immediately. |
static <T> ThriftListenableFuture<T> |
failedListenableFuture(Exception e)
Returns a new
ThriftListenableFuture instance that has an exception set immediately. |
static <T> ThriftCompletableFuture<T> |
successfulCompletedFuture(T value)
Returns a new
ThriftCompletableFuture instance that has its value set immediately. |
static <T> ThriftListenableFuture<T> |
successfulListenableFuture(T value)
Returns a new
ThriftListenableFuture instance that has its value set immediately. |
public static <T> ThriftCompletableFuture<T> successfulCompletedFuture(T value)
ThriftCompletableFuture instance that has its value set immediately.public static <T> ThriftCompletableFuture<T> failedCompletedFuture(Exception e)
ThriftCompletableFuture instance that has an exception set immediately.public static <T> ThriftListenableFuture<T> successfulListenableFuture(T value)
ThriftListenableFuture instance that has its value set immediately.public static <T> ThriftListenableFuture<T> failedListenableFuture(Exception e)
ThriftListenableFuture instance that has an exception set immediately.© Copyright 2015–2018 LINE Corporation. All rights reserved.