Class FutureResult<T>
java.lang.Object
de.knightsoftnet.gwtp.spring.client.rest.helper.FutureResult<T>
- Type Parameters:
T- type of the result
- All Implemented Interfaces:
com.google.gwt.user.client.rpc.AsyncCallback<T>
public class FutureResult<T>
extends Object
implements com.google.gwt.user.client.rpc.AsyncCallback<T>
future result for asynchronous call caching. Based on RPC Future Result from
http://stackoverflow.com/questions/34851180/how-to-cache-server-results-in-gwt-with-guava
- Author:
- Manfred Tremmel
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
FutureResult
public FutureResult()
-
-
Method Details
-
get
get result of the call.- Returns:
- result of call
- Throws:
IllegalStateException- if call isn't done.
-
addCallback
add callback which is informed about changes.- Parameters:
callback- callback which is informed about changes
-
isDone
public boolean isDone() -
onFailure
- Specified by:
onFailurein interfacecom.google.gwt.user.client.rpc.AsyncCallback<T>
-
onSuccess
- Specified by:
onSuccessin interfacecom.google.gwt.user.client.rpc.AsyncCallback<T>
-