Uses of Class
com.google.cloud.spanner.TimestampBound
Package
Description
A client for Cloud Spanner - A no-compromise relational database service.
Internal API for Google Cloud Spanner.
-
Uses of TimestampBound in com.google.cloud.spanner
Modifier and TypeMethodDescriptionstatic TimestampBound
TimestampBound.ofExactStaleness
(long num, TimeUnit units) Returns a timestamp bound that will perform reads and queries at an exact staleness.static TimestampBound
TimestampBound.ofMaxStaleness
(long num, TimeUnit units) Returns a timestamp bound that will perform reads and queries at a timestamp chosen to be at mostnum units
stale.static TimestampBound
TimestampBound.ofMinReadTimestamp
(com.google.cloud.Timestamp timestamp) Returns a timestamp bound that will perform reads and queries at a timestamp chosen to be at leasttimestamp
.static TimestampBound
TimestampBound.ofReadTimestamp
(com.google.cloud.Timestamp timestamp) Returns a timestamp bound that will perform reads and queries at the given timestamp.static TimestampBound
TimestampBound.strong()
Returns a timestamp bound that will perform reads and queries at a timestamp where all previously committed transactions are visible.Modifier and TypeMethodDescriptionBatchClient.batchReadOnlyTransaction
(TimestampBound bound) Returns aBatchReadOnlyTransaction
context in which multiple reads and/or queries can be performed.BatchClientImpl.batchReadOnlyTransaction
(TimestampBound bound) DatabaseClient.readOnlyTransaction
(TimestampBound bound) Returns a read-only transaction context in which a multiple reads and/or queries can be performed at the given timestamp bound.DatabaseClient.singleUse
(TimestampBound bound) Returns a context in which a single read can be performed at the given timestamp bound.DatabaseClient.singleUseReadOnlyTransaction
(TimestampBound bound) Returns a read-only transaction context in which a single read or query can be performed at given timestamp bound. -
Uses of TimestampBound in com.google.cloud.spanner.connection
Modifier and TypeMethodDescriptionvoid
Connection.setReadOnlyStaleness
(TimestampBound staleness) Sets the staleness to use for the current read-only transaction.