Class ReadOnlyStalenessUtil

public class ReadOnlyStalenessUtil

Util class for parsing and converting ReadOnlyStaleness values to/from strings. This util is used to parse client side statements and values for read only staleness for read-only transactions on Cloud Spanner.

Inheritance

java.lang.Object > ReadOnlyStalenessUtil

Constructors

ReadOnlyStalenessUtil()

public ReadOnlyStalenessUtil()

Methods

parseRfc3339(String str)

public static Timestamp parseRfc3339(String str)

Parses an RFC3339 date/time value with nanosecond precision and returns this as a Timestamp.

Parameter
NameDescription
strString
Returns
TypeDescription
com.google.cloud.Timestamp
Exceptions
TypeDescription
SpannerException