
org.jsimpledb.kv.raft.CheckReadyTransactionService Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jsimpledb-kv-raft Show documentation
Show all versions of jsimpledb-kv-raft Show documentation
JSimpleDB distributed, linearizable ACID compliant key/value store implementation based on the Raft consensus algorithm.
The newest version!
/*
* Copyright (C) 2015 Archie L. Cobbs. All rights reserved.
*/
package org.jsimpledb.kv.raft;
class CheckReadyTransactionService extends AbstractTransactionService {
/**
* Constructor.
*/
CheckReadyTransactionService(Role role, RaftKVTransaction tx) {
super(role, tx, "check ready tx#" + tx.txId);
}
@Override
protected void doRun() {
if (this.tx.getState().equals(TxState.COMMIT_READY))
this.role.checkReadyTransaction(this.tx);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy