All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jsimpledb.kv.raft.CheckWaitingTransactionService Maven / Gradle / Ivy

Go to download

JSimpleDB distributed, linearizable ACID compliant key/value store implementation based on the Raft consensus algorithm.

There is a newer version: 3.6.1
Show newest version

/*
 * Copyright (C) 2015 Archie L. Cobbs. All rights reserved.
 */

package org.jsimpledb.kv.raft;

class CheckWaitingTransactionService extends AbstractTransactionService {

    /**
     * Constructor.
     */
    CheckWaitingTransactionService(Role role, RaftKVTransaction tx) {
        super(role, tx, "check waiting tx#" + tx.txId);
    }

    @Override
    protected void doRun() {
        if (this.tx.getState().equals(TxState.COMMIT_WAITING))
            this.role.checkWaitingTransaction(this.tx);
    }
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy