use of com.hazelcast.spi.impl.executionservice.TaskScheduler 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);
}
use of com.hazelcast.spi.impl.executionservice.TaskScheduler in project hazelcast by hazelcast.
the class DefaultClientExtension method createNearCacheManager.
@Override
public NearCacheManager createNearCacheManager() {
SerializationService ss = client.getSerializationService();
TaskScheduler taskScheduler = client.getTaskScheduler();
ClassLoader classLoader = client.getClientConfig().getClassLoader();
HazelcastProperties properties = client.getProperties();
return new DefaultNearCacheManager(ss, taskScheduler, classLoader, properties);
}
use of com.hazelcast.spi.impl.executionservice.TaskScheduler in project hazelcast by hazelcast.
the class ClientInvocationServiceImpl method start.
public void start() {
responseHandlerSupplier.start();
if (isBackupAckToClientEnabled) {
TaskScheduler executionService = client.getTaskScheduler();
long cleanResourcesMillis = client.getProperties().getPositiveMillisOrDefault(CLEAN_RESOURCES_MILLIS);
executionService.scheduleWithRepetition(new BackupTimeoutTask(), cleanResourcesMillis, cleanResourcesMillis, MILLISECONDS);
}
}
Aggregations