T- the type of the input to the function
U- the type of the result of the function
@FunctionalInterface public static interface ClosingFuture.ClosingFunction<T,U>
U apply(ClosingFuture.DeferredCloser closer, T input) throws 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.
Copyright © 2010–2021. All rights reserved.