Search in sources :

Example 1 with DelayedExecutorAdapter

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;
}
Also used : DelayedExecutorAdapter(com.linkedin.parseq.DelayedExecutorAdapter) ScheduledExecutorService(java.util.concurrent.ScheduledExecutorService) ScheduledExecutorService(java.util.concurrent.ScheduledExecutorService) ExecutorService(java.util.concurrent.ExecutorService) CountingEngine(com.linkedin.parseq.CountingEngine)

Aggregations

CountingEngine (com.linkedin.parseq.CountingEngine)1 DelayedExecutorAdapter (com.linkedin.parseq.DelayedExecutorAdapter)1 ExecutorService (java.util.concurrent.ExecutorService)1 ScheduledExecutorService (java.util.concurrent.ScheduledExecutorService)1