Package com.google.cloud.spanner
Enum TimestampBound.Mode
- java.lang.Object
-
- java.lang.Enum<TimestampBound.Mode>
-
- com.google.cloud.spanner.TimestampBound.Mode
-
- All Implemented Interfaces:
Serializable
,Comparable<TimestampBound.Mode>
- Enclosing class:
- TimestampBound
public static enum TimestampBound.Mode extends Enum<TimestampBound.Mode>
The type of timestamp bound. See the class documentation ofTimestampBound
for a detailed discussion of the various modes.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description EXACT_STALENESS
MAX_STALENESS
MIN_READ_TIMESTAMP
READ_TIMESTAMP
STRONG
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TimestampBound.Mode
valueOf(String name)
Returns the enum constant of this type with the specified name.static TimestampBound.Mode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
STRONG
public static final TimestampBound.Mode STRONG
-
READ_TIMESTAMP
public static final TimestampBound.Mode READ_TIMESTAMP
-
MIN_READ_TIMESTAMP
public static final TimestampBound.Mode MIN_READ_TIMESTAMP
-
EXACT_STALENESS
public static final TimestampBound.Mode EXACT_STALENESS
-
MAX_STALENESS
public static final TimestampBound.Mode MAX_STALENESS
-
-
Method Detail
-
values
public static TimestampBound.Mode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (TimestampBound.Mode c : TimestampBound.Mode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TimestampBound.Mode valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-