Interface AsyncResourceFn
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Asynchronously reads static or templated resource contents from a full request.
-
Method Summary
Modifier and TypeMethodDescriptionCompletionStage<? extends ResourceContents> apply(InteractionContext context, ResourceRequest request) Reads the requested resource asynchronously.
-
Method Details
-
apply
CompletionStage<? extends ResourceContents> apply(InteractionContext context, ResourceRequest request) Reads the requested resource asynchronously.- Parameters:
context- the interaction contextrequest- the full resource request- Returns:
- a stage that completes with the resource contents
-