Interface AsyncFunction<I,O>
-
@Deprecated(since="2022-12-01") public interface AsyncFunction<I,O>Deprecated.The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023Transforms a value, possibly asynchronously. For an example usage and more information, seeFutures.transform(ListenableFuture, AsyncFunction).- Since:
- 11.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description ListenableFuture<O>apply(I input)Deprecated.Returns an outputFutureto use in place of the giveninput.
-
-
-
Method Detail
-
apply
ListenableFuture<O> apply(I input) throws java.lang.Exception
Deprecated.Returns an outputFutureto use in place of the giveninput. The outputFutureneed not be done, makingAsyncFunctionsuitable for asynchronous derivations.Throwing an exception from this method is equivalent to returning a failing
Future.- Throws:
java.lang.Exception
-
-