
R - The type of the AsyncCallback.public class DelagatingCallbackDispatchRequest<R> extends Object implements CallbackDispatchRequest<R>
DispatchRequest that should be used by
ClientActionHandlers 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
AbstractCachingClientActionHandler to be able to store
inside an HashMap DefaultCallbackDispatchRequest
while keeping GwtHttpDispatchRequest nature.| Constructor and Description |
|---|
DelagatingCallbackDispatchRequest(DispatchRequest request,
AsyncCallback<R> callback) |
public DelagatingCallbackDispatchRequest(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-2014 ArcBees. All Rights Reserved.