use of com.hazelcast.spi.properties.HazelcastProperties in project hazelcast-jet by hazelcast.
the class JobCoordinationService method init.
public void init() {
InternalExecutionService executionService = nodeEngine.getExecutionService();
HazelcastProperties properties = new HazelcastProperties(config.getProperties());
long jobScanPeriodInMillis = properties.getMillis(JOB_SCAN_PERIOD);
executionService.register(COORDINATOR_EXECUTOR_NAME, 2, Integer.MAX_VALUE, CACHED);
executionService.scheduleWithRepetition(COORDINATOR_EXECUTOR_NAME, this::scanJobs, jobScanPeriodInMillis, jobScanPeriodInMillis, MILLISECONDS);
}
Aggregations