|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.ksu.cis.cadena.core.queue.ModelChangeQueue
public class ModelChangeQueue
| Constructor Summary | |
|---|---|
ModelChangeQueue(AdaptingResourceSetImpl resourceSet)
Default constructor. |
|
| Method Summary | |
|---|---|
void |
addErrorListener(IModelChangeQueueErrorListener listener)
|
void |
addListener(IModelChangeQueueListener listener)
Adds a change queue listener. |
void |
enqueAction(IModelChangeAction action)
Adds an action to the actions list. |
boolean |
isRunning()
|
boolean |
isWorkerThread()
Determine whether or not the current active thread is the worker thread. |
void |
removeErrorListener(IModelChangeQueueErrorListener listener)
|
void |
removeListener(IModelChangeQueueListener listener)
Removes a change qeue listener. |
void |
run()
The main work loop. |
void |
start()
Starts the change queue. |
void |
stopQueue(boolean wait)
Stops the change queue. |
void |
wait(IModelChangeAction action)
Waits on an action to be completed. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ModelChangeQueue(AdaptingResourceSetImpl resourceSet)
resourceSet - The resource set that this queue is "working" for. Must not be
null.| Method Detail |
|---|
public void start()
public void stopQueue(boolean wait)
wait - If true, this method will block until the work
queue has died.public boolean isRunning()
true if the queue is running, false
otherwise.public boolean isWorkerThread()
true if the current thread is indeed the worker
thread. false otherwise.public void run()
run in interface java.lang.Runnablepublic void enqueAction(IModelChangeAction action)
action - The action to add.public void wait(IModelChangeAction action)
action - The action to wait on.public void addListener(IModelChangeQueueListener listener)
listener - The listener to add.public void removeListener(IModelChangeQueueListener listener)
listener - The listener to remove.public void addErrorListener(IModelChangeQueueErrorListener listener)
public void removeErrorListener(IModelChangeQueueErrorListener listener)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||