use of org.neo4j.kernel.impl.api.TransactionQueue in project neo4j by neo4j.
the class ReplicatedTransactionStateMachine method installCommitProcess.
public synchronized void installCommitProcess(TransactionCommitProcess commitProcess, long lastCommittedIndex) {
this.lastCommittedIndex = lastCommittedIndex;
log.info(format("Updated lastCommittedIndex to %d", lastCommittedIndex));
this.queue = new TransactionQueue(maxBatchSize, (first, last) -> commitProcess.commit(first, CommitEvent.NULL, TransactionApplicationMode.EXTERNAL));
}
use of org.neo4j.kernel.impl.api.TransactionQueue in project neo4j by neo4j.
the class DefaultRecoverySPI method startRecovery.
@Override
public Visitor<CommittedTransactionRepresentation, Exception> startRecovery() {
// Calling this method means that recovery is required, tell storage engine about it
// This method will be called before recovery actually starts and so will ensure that
// each store is aware that recovery will be performed. At this point all the stores have
// already started btw.
// Go and read more at {@link CommonAbstractStore#deleteIdGenerator()}
storageEngine.prepareForRecoveryRequired();
transactionsToApply = new TransactionQueue(10_000, (first, last) -> storageEngine.apply(first, RECOVERY));
recoveryVisitor = new RecoveryVisitor(transactionsToApply);
return recoveryVisitor;
}
use of org.neo4j.kernel.impl.api.TransactionQueue in project neo4j by neo4j.
the class BatchingTxApplier method start.
@Override
public void start() {
stopped = false;
refreshFromNewStore();
txQueue = new TransactionQueue(maxBatchSize, (first, last) -> commitProcess.commit(first, NULL, EXTERNAL));
}
Aggregations