Class FutureAdapter<T,S> 
java.lang.Object
org.springframework.util.concurrent.FutureAdapter<T,S> 
- Type Parameters:
- T- the type of this- Future
- S- the type of the adaptee's- Future
- All Implemented Interfaces:
- Future<T>
@Deprecated(since="6.0")
public abstract class FutureAdapter<T,S> 
extends Object
implements Future<T>
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 SummaryConstructorsModifierConstructorDescriptionprotectedFutureAdapter(Future<S> adaptee) Deprecated.Constructs a newFutureAdapterwith the given adaptee.
- 
Method Summary
- 
Constructor Details- 
FutureAdapterDeprecated.Constructs a newFutureAdapterwith the given adaptee.- Parameters:
- adaptee- the future to delegate to
 
 
- 
- 
Method Details- 
getAdapteeDeprecated.Returns the adaptee.
- 
cancelpublic boolean cancel(boolean mayInterruptIfRunning) Deprecated.
- 
isCancelledpublic boolean isCancelled()Deprecated.- Specified by:
- isCancelledin interface- Future<T>
 
- 
isDonepublic boolean isDone()Deprecated.
- 
getDeprecated.- Specified by:
- getin interface- Future<T>
- Throws:
- InterruptedException
- ExecutionException
 
- 
getpublic @Nullable T get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException Deprecated.- Specified by:
- getin interface- Future<T>
- Throws:
- InterruptedException
- ExecutionException
- TimeoutException
 
- 
adaptDeprecated.Adapts the given adaptee's result into T.- Returns:
- the adapted result
- Throws:
- ExecutionException
 
 
-