T - the type of result expected by the listener.public class ResultAdapter<T> extends Object implements ResultListener<T>
ResultListener to an InvocationService.ResultListener if the
failure is an instance of InvocationException the message will be passed on to the
result listener, otherwise they will be provided with InvocationCodes.INTERNAL_ERROR.ResultListener.NOOP<T>NOOP| Constructor and Description |
|---|
ResultAdapter(InvocationService.ResultListener listener)
Creates an adapter with the supplied listener.
|
| Modifier and Type | Method and Description |
|---|---|
void |
requestCompleted(T result) |
void |
requestFailed(Exception cause) |
public ResultAdapter(InvocationService.ResultListener listener)
public void requestCompleted(T result)
requestCompleted in interface ResultListener<T>public void requestFailed(Exception cause)
requestFailed in interface ResultListener<T>Copyright © 2015. All rights reserved.