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

org.jsimpledb.kv.simple.XMLKVTransaction Maven / Gradle / Ivy

There is a newer version: 3.6.1
Show newest version

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

package org.jsimpledb.kv.simple;

/**
 * Transaction associated with a {@link XMLKVDatabase}.
 */
public class XMLKVTransaction extends SimpleKVTransaction {

    private final int generation;

    XMLKVTransaction(XMLKVDatabase database, long waitTimeout, int generation) {
        super(database, waitTimeout);
        this.generation = generation;
    }

    /**
     * Get the generation number associated with this instance.
     *
     * @return the generation number on which this transaction is based
     * @see XMLKVDatabase#getGeneration
     */
    public int getGeneration() {
        return this.generation;
    }
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy