T
- the type of the input to the functionU
- the type of the result of the function@FunctionalInterface public static interface ClosingFuture.AsyncClosingFunction<T,U>
ClosingFuture
of a result.Modifier and Type | Method and Description |
---|---|
ClosingFuture<U> |
apply(ClosingFuture.DeferredCloser closer,
T input)
Applies this function to an input, or throws an exception if unable to do so.
|
ClosingFuture<U> apply(ClosingFuture.DeferredCloser closer, T input) 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
Copyright © 2010–2021 JBoss by Red Hat. All rights reserved.