T - type of the resultpublic class FutureResult<T> extends Object implements com.google.gwt.user.client.rpc.AsyncCallback<T>
| Constructor and Description |
|---|
FutureResult() |
| Modifier and Type | Method and Description |
|---|---|
void |
addCallback(com.google.gwt.user.client.rpc.AsyncCallback<T> pcallback)
add callback which is informed about changes.
|
T |
get()
get result of the call.
|
boolean |
isDone() |
void |
onFailure(Throwable pexception) |
void |
onSuccess(T presponse) |
public T get() throws IllegalStateException
IllegalStateException - if call isn't done.public void addCallback(com.google.gwt.user.client.rpc.AsyncCallback<T> pcallback)
pcallback - callback which is informed about changespublic boolean isDone()
public void onFailure(Throwable pexception)
onFailure in interface com.google.gwt.user.client.rpc.AsyncCallback<T>Copyright © 2015–2018. All rights reserved.