public class DelegatingDispatchRequest extends Object implements DispatchRequest
DispatchRequest
that is used in conjunction with
ClientActionHandler
s.
As the ClientActionHandler may be provided asynchronously, the ClientActionHandlerDispatchRequest
will
initially not contain an DispatchRequest
.
Once the ClientActionHandler
is executed, this be populated
with a DelegatingDispatchRequest
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 DispatchRequest
public boolean isPending()
isPending
in interface DispatchRequest
Copyright © 2010–2014 Arcbees. All rights reserved.