public class DelegatingResultFuture<OUT> extends Object implements java.util.function.BiConsumer<Collection<OUT>,Throwable>
CompletableFuture
to ResultFuture
. This
is used as a bridge between AsyncTableFunction
and
AsyncFunction
.Constructor and Description |
---|
DelegatingResultFuture(ResultFuture<OUT> delegatedResultFuture) |
Modifier and Type | Method and Description |
---|---|
void |
accept(Collection<OUT> outs,
Throwable throwable) |
CompletableFuture<Collection<OUT>> |
getCompletableFuture() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
andThen
public DelegatingResultFuture(ResultFuture<OUT> delegatedResultFuture)
public void accept(Collection<OUT> outs, Throwable throwable)
accept
in interface java.util.function.BiConsumer<Collection<OUT>,Throwable>
public CompletableFuture<Collection<OUT>> getCompletableFuture()
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.