class SimpleRemoteLogHandler.DefaultCallback extends java.lang.Object implements AsyncCallback<java.lang.String>
Constructor and Description |
---|
DefaultCallback() |
Modifier and Type | Method and Description |
---|---|
void |
onFailure(java.lang.Throwable caught)
Called when an asynchronous call fails to complete normally.
|
void |
onSuccess(java.lang.String result)
Called when an asynchronous call completes successfully.
|
public void onFailure(java.lang.Throwable caught)
AsyncCallback
IncompatibleRemoteServiceException
s, InvocationException
s,
or checked exceptions thrown by the service method are examples of the type
of failures that can be passed to this method.
If caught
is an instance of an
IncompatibleRemoteServiceException
the application should try to
get into a state where a browser refresh can be safely done.
onFailure
in interface AsyncCallback<java.lang.String>
caught
- failure encountered while executing a remote procedure callpublic void onSuccess(java.lang.String result)
AsyncCallback
onSuccess
in interface AsyncCallback<java.lang.String>
result
- the return value of the remote produced call