R - The type of the AsyncCallback.public class DelegatingCallbackDispatchRequest<R> extends Object implements CallbackDispatchRequest<R>
DispatchRequest that should be used by
Interceptors that make asynchronous calls that return a
Request.
This class also takes a DispatchRequest and delegate work to this DispatchRequest.
This class is used within
com.gwtplatform.dispatch.rpc.client.interceptor.caching.AbstractCachingRpcInterceptor to be able to store
inside an HashMap DefaultCallbackDispatchRequest
while keeping GwtHttpDispatchRequest nature.| Constructor and Description |
|---|
DelegatingCallbackDispatchRequest(DispatchRequest request,
AsyncCallback<R> callback) |
public DelegatingCallbackDispatchRequest(DispatchRequest request, AsyncCallback<R> callback)
public void cancel()
cancel in interface DispatchRequestpublic boolean isPending()
isPending in interface DispatchRequestpublic void onFailure(Throwable caught)
onFailure in interface AsyncCallback<R>public void onSuccess(R result)
onSuccess in interface AsyncCallback<R>Copyright © 2010–2015 Arcbees. All rights reserved.