|
1 | 1 | /*
|
2 |
| - * Copyright 2002-2022 the original author or authors. |
| 2 | + * Copyright 2002-2024 the original author or authors. |
3 | 3 | *
|
4 | 4 | * Licensed under the Apache License, Version 2.0 (the "License");
|
5 | 5 | * you may not use this file except in compliance with the License.
|
|
35 | 35 | * <p>In terms of target method signatures, any parameter types are supported.
|
36 | 36 | * However, the return type is constrained to either {@code void} or
|
37 | 37 | * {@link java.util.concurrent.Future}. In the latter case, you may declare the
|
38 |
| - * more specific {@link org.springframework.util.concurrent.ListenableFuture} or |
39 |
| - * {@link java.util.concurrent.CompletableFuture} types which allow for richer |
40 |
| - * interaction with the asynchronous task and for immediate composition with |
41 |
| - * further processing steps. |
| 38 | + * more specific {@link java.util.concurrent.CompletableFuture} type which allows |
| 39 | + * for richer interaction with the asynchronous task and for immediate composition |
| 40 | + * with further processing steps. |
42 | 41 | *
|
43 | 42 | * <p>A {@code Future} handle returned from the proxy will be an actual asynchronous
|
44 |
| - * {@code Future} that can be used to track the result of the asynchronous method |
45 |
| - * execution. However, since the target method needs to implement the same signature, |
46 |
| - * it will have to return a temporary {@code Future} handle that just passes a value |
47 |
| - * through: for example, Spring's {@link AsyncResult}, EJB 3.1's {@link jakarta.ejb.AsyncResult}, |
48 |
| - * or {@link java.util.concurrent.CompletableFuture#completedFuture(Object)}. |
| 43 | + * {@code (Completable)Future} that can be used to track the result of the |
| 44 | + * asynchronous method execution. However, since the target method needs to implement |
| 45 | + * the same signature, it will have to return a temporary {@code Future} handle that |
| 46 | + * just passes a value after computation in the execution thread: typically through |
| 47 | + * {@link java.util.concurrent.CompletableFuture#completedFuture(Object)}. The |
| 48 | + * provided value will be exposed to the caller through the actual asynchronous |
| 49 | + * {@code Future} handle at runtime. |
49 | 50 | *
|
50 | 51 | * @author Juergen Hoeller
|
51 | 52 | * @author Chris Beams
|
|
0 commit comments