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 Converter |
converter |
protected T |
resultHolder |
protected boolean |
status |
Constructor and Description |
---|
FutureResult(T resultHolder) |
FutureResult(T resultHolder,
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() |
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 Converter converter
public FutureResult(T resultHolder)
public T getResultHolder()
public Object convert(Object result)
result
- The result to convertpublic Converter getConverter()
public boolean isStatus()
public void setStatus(boolean status)
public abstract Object get()
Copyright © 2011-2016–2016 Pivotal Software, Inc.. All rights reserved.