Search in sources :

Example 1 with TransactionIdTracker

use of org.neo4j.kernel.api.txtracking.TransactionIdTracker in project neo4j by neo4j.

the class ReadReplicaReplicationIT method transactionIdTracker.

private TransactionIdTracker transactionIdTracker(GraphDatabaseAPI database) {
    TransactionIdStore transactionIdStore = database.getDependencyResolver().resolveDependency(TransactionIdStore.class);
    AvailabilityGuard availabilityGuard = database.getDependencyResolver().resolveDependency(AvailabilityGuard.class);
    return new TransactionIdTracker(transactionIdStore, availabilityGuard, Clock.systemUTC());
}
Also used : TransactionIdStore(org.neo4j.kernel.impl.transaction.log.TransactionIdStore) AvailabilityGuard(org.neo4j.kernel.AvailabilityGuard) TransactionIdTracker(org.neo4j.kernel.api.txtracking.TransactionIdTracker)

Aggregations

AvailabilityGuard (org.neo4j.kernel.AvailabilityGuard)1 TransactionIdTracker (org.neo4j.kernel.api.txtracking.TransactionIdTracker)1 TransactionIdStore (org.neo4j.kernel.impl.transaction.log.TransactionIdStore)1