Enum Options.BeginTransactionOption (6.118.0)

public enum Options.BeginTransactionOption extends Enum<Options.BeginTransactionOption>

Controls how a multi-use read-only transaction is started.

Static Fields

Name Description
EXPLICIT

Execute a separate BeginTransaction RPC before any reads or queries.

INLINE

Include BeginTransaction on the first read or query. This saves one round trip when the first operation is not slow and the transaction starts serially. It can be less performant than #EXPLICIT when multiple reads or queries are started concurrently, because only one operation can carry the BeginTransaction option and the others must wait until that operation returns transaction metadata. ReadOnlyTransaction#getReadTimestamp() is also not available until the first operation has returned transaction metadata.

Static Methods

Name Description
valueOf(String name)
values()