Search in sources :

Example 1 with EntryTaskScheduler

use of com.hazelcast.internal.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.impl.NodeEngine) TaskScheduler(com.hazelcast.spi.impl.executionservice.TaskScheduler) EntryTaskScheduler(com.hazelcast.internal.util.scheduler.EntryTaskScheduler)

Aggregations

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