01: package org.claros.chat.threads;
02:
03: import org.claros.chat.controllers.QueueController;
04:
05: public class ClearThread extends Thread {
06: public void run() {
07: try {
08: Thread.sleep(1000 * 60 * 2);
09: QueueController.fullClear();
10: } catch (InterruptedException e1) {
11: // do nothing sier
12: }
13:
14: while (true) {
15: try {
16: QueueController.clear();
17: Thread.sleep(1000 * 60 * 60);
18: } catch (Throwable e) {
19: // do nothing sier
20: }
21:
22: }
23: }
24:
25: }
|