Search in sources :

Example 1 with PopulationWorkScheduler

use of org.neo4j.kernel.api.index.IndexPopulator.PopulationWorkScheduler in project neo4j by neo4j.

the class PartMergerTest method setUp.

@BeforeEach
void setUp() {
    scheduler = new ThreadPoolJobScheduler();
    populationWorkScheduler = new PopulationWorkScheduler() {

        @Override
        public <T> JobHandle<T> schedule(IndexPopulator.JobDescriptionSupplier descriptionSupplier, Callable<T> job) {
            return scheduler.schedule(Group.INDEX_POPULATION_WORK, NOT_MONITORED, job);
        }
    };
}
Also used : IndexPopulator(org.neo4j.kernel.api.index.IndexPopulator) JobHandle(org.neo4j.scheduler.JobHandle) PopulationWorkScheduler(org.neo4j.kernel.api.index.IndexPopulator.PopulationWorkScheduler) ThreadPoolJobScheduler(org.neo4j.test.scheduler.ThreadPoolJobScheduler) BeforeEach(org.junit.jupiter.api.BeforeEach)

Aggregations

BeforeEach (org.junit.jupiter.api.BeforeEach)1 IndexPopulator (org.neo4j.kernel.api.index.IndexPopulator)1 PopulationWorkScheduler (org.neo4j.kernel.api.index.IndexPopulator.PopulationWorkScheduler)1 JobHandle (org.neo4j.scheduler.JobHandle)1 ThreadPoolJobScheduler (org.neo4j.test.scheduler.ThreadPoolJobScheduler)1