T - The deserializable type for the value of this response.public abstract class ResponseAdapter<T> extends java.lang.Object implements ResponseListener<T>
The methods in this class are empty. This class exists as convenience for creating listener objects.
| Constructor and Description |
|---|
ResponseAdapter() |
| Modifier and Type | Method and Description |
|---|---|
void |
onFailure(java.lang.Throwable error)
Invoked when the request associated with the
OrchestrateRequest
has failed. |
void |
onSuccess(T object)
Invoked when the request associated with the
OrchestrateRequest
has been completed. |
public void onFailure(java.lang.Throwable error)
OrchestrateRequest
has failed.onFailure in interface ResponseListener<T>error - The exception thrown.public void onSuccess(T object)
OrchestrateRequest
has been completed.onSuccess in interface ResponseListener<T>object - The object from the response.