Package oracle.nosql.driver
Class Consistency
- java.lang.Object
 - 
- oracle.nosql.driver.Consistency
 
 
- 
public class Consistency extends Object
Consistency is used to provide consistency guarantees for read operations.ABSOLUTEconsistency may be specified to guarantee that current values are read.EVENTUALconsistency means that the values read may be very slightly out of date.ABSOLUTEconsistency results in higher cost, consuming twice the number of read units for the same data relative toEVENTUALconsistency, and should only be used when required.It is possible to set a default Consistency for a
NoSQLHandleinstance by usingNoSQLHandleConfig.setConsistency(oracle.nosql.driver.Consistency). If no Consistency is specified in an operation and there is no default value,EVENTUALis used.Consistency can be specified as an optional argument to all read operations.
 
- 
- 
Nested Class Summary
Nested Classes Modifier and Type Class Description static classConsistency.Type 
- 
Field Summary
Fields Modifier and Type Field Description static ConsistencyABSOLUTEstatic ConsistencyEVENTUAL 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Consistency.TypegetType()Returns theConsistency.Typeof ConsistencybooleanisAbsolute()Returns true if this is Consistency.ABSOLUTEbooleanisEventual()Returns true if this is Consistency.EVENTUAL 
 - 
 
- 
- 
Field Detail
- 
ABSOLUTE
public static Consistency ABSOLUTE
 
- 
EVENTUAL
public static Consistency EVENTUAL
 
 - 
 
- 
Method Detail
- 
getType
public Consistency.Type getType()
Returns theConsistency.Typeof Consistency- Returns:
 - the type
 
 
- 
isAbsolute
public boolean isAbsolute()
Returns true if this is Consistency.ABSOLUTE- Returns:
 - true if this instance represents ABSOLUTE Consistency
 
 
- 
isEventual
public boolean isEventual()
Returns true if this is Consistency.EVENTUAL- Returns:
 - true if this instance represents EVENTUAL Consistency
 
 
 - 
 
 -