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