|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectto.etc.domui.state.DelayedActivitiesManager
public class DelayedActivitiesManager
This helper class does all of the handling for delayed activities for a conversation. It contains all activity queues plus all handling of the executor thread.
Constructor Summary | |
---|---|
protected |
DelayedActivitiesManager(ConversationContext conversation)
|
Method Summary | ||
---|---|---|
void |
applyToTree(DelayedActivityState das)
Apply all activity changes to the page. |
|
boolean |
callbackRequired()
Returns whether the client needs to use it's polltimer again and poll for changes. |
|
boolean |
cancelActivity(DelayedActivityInfo dai)
Cancels an activity, if possible. |
|
void |
cancelActivity(IActivity a)
|
|
boolean |
isTerminated()
|
|
void |
processDelayedResults(Page pg)
|
|
|
registerPoller(T nc)
Registers a node as a thingy which needs to be called every polltime seconds to update the screen. |
|
void |
run()
Main action runnert. |
|
DelayedActivityInfo |
schedule(IActivity a,
AsyncContainer ac)
Schedule a new activity for execution. |
|
boolean |
start()
Initiate background processing, if needed. |
|
void |
terminate()
Forcefully terminate all handling of actions. |
|
|
unregisterPoller(T nc)
Deregister a node from the poll-regularly queue. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected DelayedActivitiesManager(ConversationContext conversation)
Method Detail |
---|
public DelayedActivityInfo schedule(IActivity a, AsyncContainer ac)
a
-
public void cancelActivity(IActivity a)
public boolean cancelActivity(DelayedActivityInfo dai)
dai
- public boolean start()
public boolean callbackRequired()
public boolean isTerminated()
public void terminate()
public void run()
run
in interface java.lang.Runnable
Runnable.run()
public void applyToTree(DelayedActivityState das)
das
- public void processDelayedResults(Page pg) throws java.lang.Exception
java.lang.Exception
public <T extends NodeContainer & IPolledForUpdate> void registerPoller(T nc)
T
- nc
- public <T extends NodeBase & IPolledForUpdate> void unregisterPoller(T nc)
T
- nc
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |