public interface SpannerConnection
Cast a Cloud Spanner-provided `Connection` object to this interface to take advantage of the readonly transaction types: read-only strongly consistent and read-only stale.
| Modifier and Type | Method and Description |
|---|---|
reactor.core.publisher.Mono<Void> |
beginReadonlyTransaction()
Allows starting a readonly Cloud Spanner transaction with strong consistency.
|
reactor.core.publisher.Mono<Void> |
beginReadonlyTransaction(com.google.cloud.spanner.TimestampBound timestampBound)
Allows starting a readonly Cloud Spanner transaction with given staleness settings.
|
boolean |
isInReadonlyTransaction() |
reactor.core.publisher.Mono<Void> beginReadonlyTransaction(com.google.cloud.spanner.TimestampBound timestampBound)
timestampBound - staleness settingsMono signaling readonly transaction is ready for usereactor.core.publisher.Mono<Void> beginReadonlyTransaction()
Mono signaling readonly transaction is ready for useboolean isInReadonlyTransaction()
Copyright © 2021 Google LLC. All rights reserved.