executor = Executors.newSingleThreadScheduledExecutor();
counterGroup = new CounterGroup();
File directory = new File(spoolDirectory);
reader = new SpoolingFileLineReader(directory, completedSuffix,
bufferMaxLines, bufferMaxLineLength);
runner = new SpoolDirectoryRunnable(reader, counterGroup);
executor.scheduleWithFixedDelay(
runner, 0, POLL_DELAY_MS, TimeUnit.MILLISECONDS);