
Public Member Functions | |
| AcsDoActivity (String name, AcsSimpleState nextState, AcsSimpleState errorState, AcsLogger logger, ThreadPoolExecutor executor) | |
| void | execute () |
| abstract void | runActions () throws AcsStateActionException |
| void | terminateActions () |
Package Functions | |
| void | logActionFailure (String sourceStateName, String targetStateName, String actionName, Throwable thr) |
Private Attributes | |
| final AcsSimpleState | m_nextState |
| final AcsSimpleState | m_errorState |
| final String | m_name |
| final AcsLogger | logger |
| final ThreadPoolExecutor | executor |
| volatile boolean | m_completed |
Implementation note: uses a single instance of ExecutorService for cheaply reusing a thread in execute() for all do activities.
|
||||||||||||||||||||||||
|
|
|
|
Runs runActions() in a separate thread and returns immediately. When the actions are completed, a transition to the next state is triggered, as specified in the constructor. |
|
||||||||||||||||||||
|
|
|
|
Must call the action methods associated with this activity. |
|
|
Terminates the actions if they are still running. |
|
|
not actually used as a queue, but simply to wrap and reuse a |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.3.8