Search in sources :

Example 1 with BufferedIdController

use of org.neo4j.internal.id.BufferedIdController in project neo4j by neo4j.

the class IdContextFactory method createBufferingIdContext.

private DatabaseIdContext createBufferingIdContext(Function<NamedDatabaseId, ? extends IdGeneratorFactory> idGeneratorFactoryProvider, JobScheduler jobScheduler, PageCacheTracer cacheTracer, NamedDatabaseId namedDatabaseId) {
    IdGeneratorFactory idGeneratorFactory = idGeneratorFactoryProvider.apply(namedDatabaseId);
    BufferingIdGeneratorFactory bufferingIdGeneratorFactory = new BufferingIdGeneratorFactory(idGeneratorFactory);
    BufferedIdController bufferingController = createBufferedIdController(bufferingIdGeneratorFactory, jobScheduler, cacheTracer, namedDatabaseId.name());
    return createIdContext(bufferingIdGeneratorFactory, bufferingController);
}
Also used : BufferedIdController(org.neo4j.internal.id.BufferedIdController) BufferingIdGeneratorFactory(org.neo4j.internal.id.BufferingIdGeneratorFactory) IdGeneratorFactory(org.neo4j.internal.id.IdGeneratorFactory) BufferingIdGeneratorFactory(org.neo4j.internal.id.BufferingIdGeneratorFactory)

Aggregations

BufferedIdController (org.neo4j.internal.id.BufferedIdController)1 BufferingIdGeneratorFactory (org.neo4j.internal.id.BufferingIdGeneratorFactory)1 IdGeneratorFactory (org.neo4j.internal.id.IdGeneratorFactory)1