T
- The data type of the object that holds the future result (usually of type Future)public abstract class FutureResult<T> extends Object
Modifier and Type | Field and Description |
---|---|
protected org.springframework.core.convert.converter.Converter |
converter |
protected T |
resultHolder |
protected boolean |
status |
Constructor and Description |
---|
FutureResult(T resultHolder) |
FutureResult(T resultHolder,
org.springframework.core.convert.converter.Converter converter) |
Modifier and Type | Method and Description |
---|---|
Object |
convert(Object result)
Converts the given result if a converter is specified, else returns the result
|
abstract Object |
get() |
org.springframework.core.convert.converter.Converter |
getConverter() |
T |
getResultHolder() |
boolean |
isStatus()
Indicates if this result is the status of an operation.
|
void |
setStatus(boolean status)
Indicates if this result is the status of an operation.
|
protected T resultHolder
protected boolean status
protected org.springframework.core.convert.converter.Converter converter
public FutureResult(T resultHolder)
public FutureResult(T resultHolder, org.springframework.core.convert.converter.Converter converter)
public T getResultHolder()
public Object convert(Object result)
result
- The result to convertpublic org.springframework.core.convert.converter.Converter getConverter()
public boolean isStatus()
public void setStatus(boolean status)
public abstract Object get()
Copyright © 2011–2017 Pivotal Software, Inc.. All rights reserved.