T - Result type.public class IgniteClientFutureImpl<T> extends Object implements IgniteClientFuture<T>
CompletableFuture.| Constructor and Description |
|---|
IgniteClientFutureImpl(CompletableFuture<T> fut,
Function<Boolean,Boolean> onCancel)
Ctor.
|
IgniteClientFutureImpl(CompletionStage<T> fut)
Ctor.
|
public IgniteClientFutureImpl(CompletableFuture<T> fut, Function<Boolean,Boolean> onCancel)
fut - Future to wrap.public IgniteClientFutureImpl(CompletionStage<T> fut)
fut - Future to wrap.public static <T> IgniteClientFutureImpl<T> completedFuture(T res)
T - Result type.res - Result to wrap in a future.public T get() throws InterruptedException, ExecutionException
get in interface Future<T>InterruptedExceptionExecutionExceptionpublic T get(long l, TimeUnit timeUnit) throws InterruptedException, ExecutionException, TimeoutException
get in interface Future<T>InterruptedExceptionExecutionExceptionTimeoutExceptionpublic <U> CompletableFuture<U> thenApply(Function<? super T,? extends U> function)
thenApply in interface CompletionStage<T>public <U> CompletableFuture<U> thenApplyAsync(Function<? super T,? extends U> function)
thenApplyAsync in interface CompletionStage<T>public <U> CompletableFuture<U> thenApplyAsync(Function<? super T,? extends U> function, Executor executor)
thenApplyAsync in interface CompletionStage<T>public CompletableFuture<Void> thenAccept(Consumer<? super T> consumer)
thenAccept in interface CompletionStage<T>public CompletableFuture<Void> thenAcceptAsync(Consumer<? super T> consumer)
thenAcceptAsync in interface CompletionStage<T>public CompletableFuture<Void> thenAcceptAsync(Consumer<? super T> consumer, Executor executor)
thenAcceptAsync in interface CompletionStage<T>public CompletableFuture<Void> thenRun(Runnable runnable)
thenRun in interface CompletionStage<T>public CompletableFuture<Void> thenRunAsync(Runnable runnable)
thenRunAsync in interface CompletionStage<T>public CompletableFuture<Void> thenRunAsync(Runnable runnable, Executor executor)
thenRunAsync in interface CompletionStage<T>public <U,V> CompletableFuture<V> thenCombine(CompletionStage<? extends U> completionStage, BiFunction<? super T,? super U,? extends V> biFunction)
thenCombine in interface CompletionStage<T>public <U,V> CompletableFuture<V> thenCombineAsync(CompletionStage<? extends U> completionStage, BiFunction<? super T,? super U,? extends V> biFunction)
thenCombineAsync in interface CompletionStage<T>public <U,V> CompletableFuture<V> thenCombineAsync(CompletionStage<? extends U> completionStage, BiFunction<? super T,? super U,? extends V> biFunction, Executor executor)
thenCombineAsync in interface CompletionStage<T>public <U> CompletableFuture<Void> thenAcceptBoth(CompletionStage<? extends U> completionStage, BiConsumer<? super T,? super U> biConsumer)
thenAcceptBoth in interface CompletionStage<T>public <U> CompletableFuture<Void> thenAcceptBothAsync(CompletionStage<? extends U> completionStage, BiConsumer<? super T,? super U> biConsumer)
thenAcceptBothAsync in interface CompletionStage<T>public <U> CompletableFuture<Void> thenAcceptBothAsync(CompletionStage<? extends U> completionStage, BiConsumer<? super T,? super U> biConsumer, Executor executor)
thenAcceptBothAsync in interface CompletionStage<T>public CompletableFuture<Void> runAfterBoth(CompletionStage<?> completionStage, Runnable runnable)
runAfterBoth in interface CompletionStage<T>public CompletableFuture<Void> runAfterBothAsync(CompletionStage<?> completionStage, Runnable runnable)
runAfterBothAsync in interface CompletionStage<T>public CompletableFuture<Void> runAfterBothAsync(CompletionStage<?> completionStage, Runnable runnable, Executor executor)
runAfterBothAsync in interface CompletionStage<T>public <U> CompletableFuture<U> applyToEither(CompletionStage<? extends T> completionStage, Function<? super T,U> function)
applyToEither in interface CompletionStage<T>public <U> CompletableFuture<U> applyToEitherAsync(CompletionStage<? extends T> completionStage, Function<? super T,U> function)
applyToEitherAsync in interface CompletionStage<T>public <U> CompletableFuture<U> applyToEitherAsync(CompletionStage<? extends T> completionStage, Function<? super T,U> function, Executor executor)
applyToEitherAsync in interface CompletionStage<T>public CompletableFuture<Void> acceptEither(CompletionStage<? extends T> completionStage, Consumer<? super T> consumer)
acceptEither in interface CompletionStage<T>public CompletableFuture<Void> acceptEitherAsync(CompletionStage<? extends T> completionStage, Consumer<? super T> consumer)
acceptEitherAsync in interface CompletionStage<T>public CompletableFuture<Void> acceptEitherAsync(CompletionStage<? extends T> completionStage, Consumer<? super T> consumer, Executor executor)
acceptEitherAsync in interface CompletionStage<T>public CompletableFuture<Void> runAfterEither(CompletionStage<?> completionStage, Runnable runnable)
runAfterEither in interface CompletionStage<T>public CompletableFuture<Void> runAfterEitherAsync(CompletionStage<?> completionStage, Runnable runnable)
runAfterEitherAsync in interface CompletionStage<T>public CompletableFuture<Void> runAfterEitherAsync(CompletionStage<?> completionStage, Runnable runnable, Executor executor)
runAfterEitherAsync in interface CompletionStage<T>public <U> CompletableFuture<U> thenCompose(Function<? super T,? extends CompletionStage<U>> function)
thenCompose in interface CompletionStage<T>public <U> CompletableFuture<U> thenComposeAsync(Function<? super T,? extends CompletionStage<U>> function)
thenComposeAsync in interface CompletionStage<T>public <U> CompletableFuture<U> thenComposeAsync(Function<? super T,? extends CompletionStage<U>> function, Executor executor)
thenComposeAsync in interface CompletionStage<T>public CompletableFuture<T> whenComplete(BiConsumer<? super T,? super Throwable> biConsumer)
whenComplete in interface CompletionStage<T>public CompletableFuture<T> whenCompleteAsync(BiConsumer<? super T,? super Throwable> biConsumer)
whenCompleteAsync in interface CompletionStage<T>public CompletableFuture<T> whenCompleteAsync(BiConsumer<? super T,? super Throwable> biConsumer, Executor executor)
whenCompleteAsync in interface CompletionStage<T>public <U> CompletableFuture<U> handle(BiFunction<? super T,Throwable,? extends U> biFunction)
handle in interface CompletionStage<T>public <U> CompletableFuture<U> handleAsync(BiFunction<? super T,Throwable,? extends U> biFunction)
handleAsync in interface CompletionStage<T>public <U> CompletableFuture<U> handleAsync(BiFunction<? super T,Throwable,? extends U> biFunction, Executor executor)
handleAsync in interface CompletionStage<T>public CompletableFuture<T> toCompletableFuture()
toCompletableFuture in interface CompletionStage<T>public CompletableFuture<T> exceptionally(Function<Throwable,? extends T> function)
exceptionally in interface CompletionStage<T>public boolean cancel(boolean mayInterruptIfRunning)
public boolean isCancelled()
isCancelled in interface Future<T>
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.11.0 Release Date : September 11 2021