public class DelegatingDispatchRequest extends Object implements DispatchRequest
DispatchRequest that is used in conjunction with Interceptors.
As the interceptor implementation may be provided asynchronously, the DelegatingAsyncCallback will initially
not contain a DispatchRequest. Once the interceptor is executed, this will be populated with a DispatchRequest by calling setDelegate(DispatchRequest).| Constructor and Description |
|---|
DelegatingDispatchRequest() |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel() |
boolean |
isPending() |
void |
setDelegate(DispatchRequest delegate)
Populates the
DelegatingDispatchRequest object with a DispatchRequest. |
public void setDelegate(DispatchRequest delegate)
DelegatingDispatchRequest object with a DispatchRequest.
If the code that requested the command to be executed has already chosen to cancel the DispatchRequest,
the DispatchRequest that has been passed will be immediately cancelled.delegate - The DispatchRequest object.public void cancel()
cancel in interface DispatchRequestpublic boolean isPending()
isPending in interface DispatchRequestCopyright © 2010–2016 Arcbees. All rights reserved.