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