R - the type of resourcepublic interface ResourceCallback<R extends ResourcePrototype>
| Modifier and Type | Method and Description |
|---|---|
void |
onError(ResourceException e)
Invoked if the asynchronous operation failed.
|
void |
onSuccess(R resource)
Invoked if the asynchronous operation was successfully completed.
|
void onError(ResourceException e)
e - an exception describing the failurevoid onSuccess(R resource)
resource - the resource on which the operation was performed