public interface IAsyncCallback<ResultType>
Modifier and Type | Method and Description |
---|---|
void |
onFailure(java.lang.Throwable exception)
This method will be invoked by an arbitrary thread
when an asynchronous remote service call fails.
|
void |
onSuccess(ResultType result)
This method will be invoked by an arbitrary
thread when an asynchronous remote service call
is successfully completed.
|
void onSuccess(ResultType result)
onFailure(Throwable)
will be called
for a given remote call.result
- the result of the remote call. May be null
.void onFailure(java.lang.Throwable exception)
onSuccess(Object)
will be called
for a given remote call.exception
- any exception associated with the failure. Will not be null
.