A - the TypedAction type.R - the result type for this action.T - the interceptor type used.public abstract class DelegatingAsyncCallback<A extends TypedAction<R>,R,T extends Interceptor> extends Object implements AsyncCallback<T>, ExecuteCommand<A,R>
AsyncCallback implementation wrapping another AsyncCallback object used by a Interceptor
implementations to delegate the execution result.| Modifier | Constructor and Description |
|---|---|
protected |
DelegatingAsyncCallback(DispatchCall<A,R> dispatchCall,
A action,
AsyncCallback<R> callback,
DelegatingDispatchRequest dispatchRequest) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
delegateExecute(Interceptor interceptor) |
protected void |
delegateFailure(Interceptor interceptor) |
protected TypedAction<R> |
getAction() |
protected DelegatingDispatchRequest |
getDispatchRequest() |
void |
onFailure(Throwable caught) |
void |
onSuccess(T interceptor) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexecuteprotected DelegatingAsyncCallback(DispatchCall<A,R> dispatchCall, A action, AsyncCallback<R> callback, DelegatingDispatchRequest dispatchRequest)
public void onSuccess(T interceptor)
onSuccess in interface AsyncCallback<T extends Interceptor>public void onFailure(Throwable caught)
onFailure in interface AsyncCallback<T extends Interceptor>protected void delegateFailure(Interceptor interceptor)
protected void delegateExecute(Interceptor interceptor)
protected DelegatingDispatchRequest getDispatchRequest()
protected TypedAction<R> getAction()
Copyright © 2010–2016 Arcbees. All rights reserved.