Class TransactionOptions.ReadOnlyOptionsBuilder (3.7.10)

public static final class TransactionOptions.ReadOnlyOptionsBuilder extends TransactionOptions.Builder<TransactionOptions.ReadOnlyOptionsBuilder>

A typesafe builder class representing those options that are applicable when configuring a transaction to be read-only. All methods function as "set" rather than returning a new copy with a value set on it.

Inheritance

java.lang.Object > TransactionOptions.Builder > TransactionOptions.ReadOnlyOptionsBuilder

Methods

build()

public TransactionOptions build()
Returns
TypeDescription
TransactionOptions
Overrides

getReadTime()

public TimestampOrBuilder getReadTime()
Returns
TypeDescription
TimestampOrBuilder

the currently set value that will be used as the readTime.

setReadTime(TimestampOrBuilder readTime)

public TransactionOptions.ReadOnlyOptionsBuilder setReadTime(TimestampOrBuilder readTime)

Specify to read documents at the given time. This may not be more than 60 seconds in the past from when the request is processed by the server.

Parameter
NameDescription
readTimeTimestampOrBuilder

The specific time to read documents at. Must not be older than 60 seconds. A null value means read most up to date data.

Returns
TypeDescription
TransactionOptions.ReadOnlyOptionsBuilder

this builder