use of com.linkedin.parseq.DelayedExecutorAdapter in project rest.li by linkedin.
the class TestMultiplexerRunMode method engine.
private CountingEngine engine() {
ExecutorService taskScheduler = Executors.newFixedThreadPool(1);
ScheduledExecutorService timerScheduler = Executors.newSingleThreadScheduledExecutor();
CountingEngine countingEngine = new CountingEngine(taskScheduler, new DelayedExecutorAdapter(timerScheduler), LoggerFactory.getILoggerFactory(), Maps.newHashMap());
return countingEngine;
}
Aggregations