Dispatch
.@Deprecated public interface Dispatch
DispatchImpl
and the async
client-side version is DispatchAsync
.
This class is closely related to
DispatchService
. In fact, this class
wouldn't be needed, but we use it to workaround a GWT limitation described in
DispatchAsync
.Modifier and Type | Method and Description |
---|---|
<A extends Action<R>,R extends Result> |
execute(A action)
Deprecated.
Executes the specified action and returns the appropriate result.
|
<A extends Action<R>,R extends Result> |
undo(A action,
R result)
Deprecated.
Undoes a previously executed action.
|
<A extends Action<R>,R extends Result> R execute(A action) throws ActionException, ServiceException
A
- The Action
type.R
- The Result
type.action
- The Action
.ActionException
- if the action execution failed.ServiceException
- if the execution failed due to a service error.<A extends Action<R>,R extends Result> void undo(A action, R result) throws ActionException, ServiceException
A
- The Action
type.R
- The Result
type.action
- The Action
to undo.result
- The result obtained when the action was previously executed.ActionException
- if undoing the action failed.ServiceException
- if the execution failed due to a service error.Copyright © 2010-2014 ArcBees. All Rights Reserved.