V1
- the type returned by the first futureV2
- the type returned by the second futureU
- the type returned by the function@FunctionalInterface
public static interface ClosingFuture.Combiner2.AsyncClosingFunction2<V1,V2,U>
ClosingFuture
when applied to the values of the two futures
passed to ClosingFuture.whenAllSucceed(ClosingFuture, ClosingFuture)
.Modifier and Type | Method and Description |
---|---|
ClosingFuture<U> |
apply(ClosingFuture.DeferredCloser closer,
V1 value1,
V2 value2)
Applies this function to two inputs, or throws an exception if unable to do so.
|
ClosingFuture<U> apply(ClosingFuture.DeferredCloser closer, V1 value1, V2 value2) throws java.lang.Exception
Any objects that are passed to closer.eventuallyClose()
will be closed when the ClosingFuture
pipeline
is done (but not before this method completes), even if this method throws or the pipeline
is cancelled.
java.lang.Exception