public class DelayedActivitiesManager extends Object implements Runnable
| Modifier | Constructor and Description |
|---|---|
protected |
DelayedActivitiesManager(ConversationContext conversation) |
| Modifier and Type | Method and Description |
|---|---|
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) |
<T extends NodeContainer & IPolledForUpdate> |
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(IAsyncRunnable a,
AsyncContainer ac)
Schedule a new activity for execution.
|
boolean |
start()
Initiate background processing, if needed.
|
void |
terminate()
Forcefully terminate all handling of actions.
|
<T extends NodeBase & IPolledForUpdate> |
unregisterPoller(T nc)
Deregister a node from the poll-regularly queue.
|
protected DelayedActivitiesManager(ConversationContext conversation)
public DelayedActivityInfo schedule(@Nonnull IAsyncRunnable a, @Nonnull AsyncContainer ac) throws Exception
a - Exceptionpublic 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 RunnableRunnable.run()public void applyToTree(DelayedActivityState das) throws Exception
das - Exceptionpublic <T extends NodeContainer & IPolledForUpdate> void registerPoller(T nc)
T - nc - public <T extends NodeBase & IPolledForUpdate> void unregisterPoller(T nc)
T - nc - Copyright © 2017 etc.to. All rights reserved.