102 |
|
((LinkedList) _lists.get(queue)).notifyAll(); |
103 |
|
} |
104 |
|
} |
105 |
+ |
|
106 |
+ |
/** |
107 |
+ |
* This method erases the contents of a given queue. This |
108 |
+ |
* method should be used with care. It can only empty one |
109 |
+ |
* internal queue, not all of them. This must be called |
110 |
+ |
* multiple times to empty all queues. |
111 |
+ |
* |
112 |
+ |
* @param queue the queue to empty. |
113 |
+ |
*/ |
114 |
+ |
public void clearQueue(int queue) { |
115 |
+ |
synchronized(this) { |
116 |
+ |
((LinkedList) _lists.get(queue)).clear(); |
117 |
+ |
} |
118 |
+ |
} |
119 |
|
|
120 |
|
/** |
121 |
|
* This method returns a textual status of the queues. It |