예제 #1
0
 public void term() {
   TimerManager.clearInterval(interval);
   //		synchronized(queueManager){
   doJobs(); // 残っているjobを処理
   isTerm = true;
   //		}
 }
예제 #2
0
 private void run(long timeout) {
   startTime = System.currentTimeMillis();
   if (timeout > 0) {
     timerId = TimerManager.setTimeout(timeout, this, null);
   } else {
     timerId = TimerManager.INVALID_ID;
   }
   addWsClient();
 }
예제 #3
0
 public LogPersister(Config config) {
   this.config = config;
   interval = TimerManager.setInterval(intervalTimeout, this, null);
 }