Class ReadOnlyStalenessUtil (6.55.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
NameDescription
strString
Returns
TypeDescription
com.google.cloud.Timestamp
Exceptions
TypeDescription
SpannerException

Constructors

ReadOnlyStalenessUtil()

public ReadOnlyStalenessUtil()