Class ReadOnlyStalenessUtil (6.72.0)

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

Static 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
Name Description
str String
Returns
Type Description
com.google.cloud.Timestamp
Exceptions
Type Description
SpannerException

Constructors

ReadOnlyStalenessUtil()

public ReadOnlyStalenessUtil()