CompletableFuture (and as of 4.3.7 also CompletionStage)
as a return value type.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | supportsReturnType(MethodParameter
the method return type to check returnType)Implements org. |
| public CompletableFuture | toCompletableFuture(Object
the value returned from the handler method returnValue, MethodParameter the type of the return value returnType)Implements org. CompletableFuture.
|
| CompletableFutureReturnValueHandler | back to summary |
|---|---|
| public CompletableFutureReturnValueHandler() | |
| supportsReturnType | back to summary |
|---|---|
| public boolean supportsReturnType(MethodParameter returnType) Implements org. Doc from org. Whether the given method return type is supported by this handler.
| |
| toCompletableFuture | back to summary |
|---|---|
| public CompletableFuture Implements org. Adapt the asynchronous return value to a Return value handling will then continue when the CompletableFuture is completed with either success or error. Note this method will only be invoked after
| |