protected InternalAccumulator() { super(SharedExecutors.getTimer(), MAX_ITEMS, MAX_BATCH_MILLIS, MAX_IDLE_MILLIS); }
private void startWatchdog() { log.info("Starting watchdog task for dispatcher {}", name); watchdog = new Watchdog(); SharedExecutors.getTimer().schedule(watchdog, WATCHDOG_MS, WATCHDOG_MS); }
public synchronized void start() { // Initially start polling quickly. Then drop down to configured value log.debug("Starting Table Stats collection thread for {}", sw.getStringId()); task = new InternalTimerTask(); SharedExecutors.getTimer().scheduleAtFixedRate(task, 1 * SECONDS, pollInterval * SECONDS); }
public synchronized void start() { // Initially start polling quickly. Then drop down to configured value log.debug("Starting Stats collection thread for {}", sw.getStringId()); task = new InternalTimerTask(); SharedExecutors.getTimer().scheduleAtFixedRate(task, 1 * SECONDS, pollInterval * SECONDS); }