com.scalar.database.api.Consistency Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of scalardb Show documentation
Show all versions of scalardb Show documentation
A library that provides a distributed storage abstraction and client-coordinated distributed transaction manager on the storage.
package com.scalar.database.api;
/**
* Consistency level set in an {@link Operation}.
*
* @author Hiroyuki Yamada
*/
public enum Consistency {
/**
* Sequential consistency. With this consistency, it assumes that the underlining storage
* implementation makes all operations appear to take effect in some sequential order, and the
* operations of each individual process appear in this sequence.
*/
SEQUENTIAL,
/**
* Eventual consistency. With this consistency, it assumes that the underlining storage
* implementation makes all operations take effect eventually.
*/
EVENTUAL,
/**
* Linearizable consistency. With this consistency, it assumes that the underlining storage
* implementation makes each operation appears to take effect atomically at some point between its
* invocation and completion.
*/
LINEARIZABLE,
}