Search in sources :

Example 1 with EntryTaskScheduler

use of com.hazelcast.util.scheduler.EntryTaskScheduler in project hazelcast by hazelcast.

the class LockStoreContainer method createScheduler.

private EntryTaskScheduler<Data, Integer> createScheduler(ObjectNamespace namespace) {
    NodeEngine nodeEngine = lockService.getNodeEngine();
    LockEvictionProcessor entryProcessor = new LockEvictionProcessor(nodeEngine, namespace);
    TaskScheduler globalScheduler = nodeEngine.getExecutionService().getGlobalTaskScheduler();
    return EntryTaskSchedulerFactory.newScheduler(globalScheduler, entryProcessor, ScheduleType.FOR_EACH);
}
Also used : NodeEngine(com.hazelcast.spi.NodeEngine) TaskScheduler(com.hazelcast.spi.TaskScheduler) EntryTaskScheduler(com.hazelcast.util.scheduler.EntryTaskScheduler)

Aggregations

NodeEngine (com.hazelcast.spi.NodeEngine)1 TaskScheduler (com.hazelcast.spi.TaskScheduler)1 EntryTaskScheduler (com.hazelcast.util.scheduler.EntryTaskScheduler)1