R
- The type of the AsyncCallback
.public class DelagatingCallbackDispatchRequest<R> extends Object implements CallbackDispatchRequest<R>
DispatchRequest
that should be used by
ClientActionHandler
s 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 DispatchRequest
public boolean isPending()
isPending
in interface DispatchRequest
public 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.