Class FutureAdapter<T,S> 
java.lang.Object
org.springframework.util.concurrent.FutureAdapter<T,S> 
- Type Parameters:
 T- the type of thisFutureS- the type of the adaptee'sFuture
- All Implemented Interfaces:
 Future<T>
- Direct Known Subclasses:
 ListenableFutureAdapter
Deprecated.
as of 6.0, with no concrete replacement
Abstract class that adapts a 
Future parameterized over S into a Future
 parameterized over T. All methods are delegated to the adaptee, where get()
 and get(long, TimeUnit) call adapt(Object) on the adaptee's result.- Since:
 - 4.0
 - Author:
 - Arjen Poutsma
 
- 
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedFutureAdapter(Future<S> adaptee) Deprecated.Constructs a newFutureAdapterwith the given adaptee. - 
Method Summary
 
- 
Constructor Details
- 
FutureAdapter
Deprecated.Constructs a newFutureAdapterwith the given adaptee.- Parameters:
 adaptee- the future to delegate to
 
 - 
 - 
Method Details
- 
getAdaptee
Deprecated.Returns the adaptee. - 
cancel
public boolean cancel(boolean mayInterruptIfRunning) Deprecated. - 
isCancelled
public boolean isCancelled()Deprecated.- Specified by:
 isCancelledin interfaceFuture<T>
 - 
isDone
public boolean isDone()Deprecated. - 
get
Deprecated.- Specified by:
 getin interfaceFuture<T>- Throws:
 InterruptedExceptionExecutionException
 - 
get
@Nullable public T get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException Deprecated.- Specified by:
 getin interfaceFuture<T>- Throws:
 InterruptedExceptionExecutionExceptionTimeoutException
 - 
adapt
Deprecated.Adapts the given adaptee's result into T.- Returns:
 - the adapted result
 - Throws:
 ExecutionException
 
 -