Class CompletableToListenableFutureAdapter<T>

java.lang.Object
org.springframework.util.concurrent.CompletableToListenableFutureAdapter<T>
Type Parameters:
T - the result type returned by this Future's get method
All Implemented Interfaces:
Future<T>, ListenableFuture<T>
Direct Known Subclasses:
MonoToListenableFutureAdapter

@Deprecated(since="6.0", forRemoval=true) public class CompletableToListenableFutureAdapter<T> extends Object implements ListenableFuture<T>
Deprecated, for removal: This API element is subject to removal in a future version.
as of 6.0, with no concrete replacement
Since:
4.2
Author:
Sebastien Deleuze, Juergen Hoeller
  • Constructor Details

    • CompletableToListenableFutureAdapter

      public CompletableToListenableFutureAdapter(CompletionStage<T> completionStage)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Create a new adapter for the given CompletionStage.
      Since:
      4.3.7
    • CompletableToListenableFutureAdapter

      public CompletableToListenableFutureAdapter(CompletableFuture<T> completableFuture)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Create a new adapter for the given CompletableFuture.
  • Method Details