use of org.neo4j.kernel.impl.scheduler.CentralJobScheduler in project neo4j by neo4j.
the class NonUniqueIndexTest method createJobScheduler.
private static CentralJobScheduler createJobScheduler() {
CentralJobScheduler scheduler = newSlowJobScheduler();
scheduler.init();
return scheduler;
}
use of org.neo4j.kernel.impl.scheduler.CentralJobScheduler in project neo4j by neo4j.
the class PropertyStoreTraceIT method configure.
@ExtensionCallback
void configure(TestDatabaseManagementServiceBuilder builder) {
var dependencies = new Dependencies();
// disabling periodic id buffers maintenance jobs
dependencies.satisfyDependency(new CentralJobScheduler(Clocks.nanoClock()) {
@Override
public JobHandle<?> scheduleRecurring(Group group, JobMonitoringParams monitoredJobParams, Runnable runnable, long period, TimeUnit timeUnit) {
return JobHandle.EMPTY;
}
@Override
public JobHandle<?> scheduleRecurring(Group group, JobMonitoringParams monitoredJobParams, Runnable runnable, long initialDelay, long period, TimeUnit unit) {
return JobHandle.EMPTY;
}
});
builder.setExternalDependencies(dependencies);
}
Aggregations