if (delayStr == null) {
delayStr = DEFAULT_DELAY;
}
final ScheduledExecutorService pool = Executors.newSingleThreadScheduledExecutor(new DaemonThreadFactory("boomerang-updater-" + abs(hashCode())));
final long delay = Long.parseLong(delayStr);
final ScheduledFuture<?> task = pool.scheduleWithFixedDelay(new CollectorUpdater(collectorCounterStore, counterStore), delay, delay, TimeUnit.MILLISECONDS);
future = new BatchFuture(pool, task);
}
} catch (final SironaException se) {
counterStore = IoCs.getInstance(CounterDataStore.class);
}