public abstract class ReadOption extends Object implements Serializable
Modifier and Type | Class and Description |
---|---|
static class |
ReadOption.EventualConsistency
Specifies eventual consistency for reads from Datastore.
|
static class |
ReadOption.QueryAndReadOptions<Q extends Query<?>> |
static class |
ReadOption.ReadTime
Reads entities as they were at the given time.
|
Modifier and Type | Method and Description |
---|---|
static ReadOption.EventualConsistency |
eventualConsistency()
Returns a
ReadOption that specifies eventual consistency, allowing Datastore to return
stale results from gets, fetches, and ancestor queries. |
static ReadOption.ReadTime |
readTime(com.google.cloud.Timestamp time)
Returns a
ReadOption that specifies read time, allowing Datastore to return results
from lookups and queries at a particular timestamp. |
static ReadOption |
transactionId(com.google.protobuf.ByteString transactionId)
Returns a
ReadOption that specifies transaction id, allowing Datastore to execute a
Query in this transaction. |
static ReadOption |
transactionId(String transactionId)
Returns a
ReadOption that specifies transaction id, allowing Datastore to execute a
Query in this transaction. |
public static ReadOption.EventualConsistency eventualConsistency()
ReadOption
that specifies eventual consistency, allowing Datastore to return
stale results from gets, fetches, and ancestor queries.@BetaApi public static ReadOption.ReadTime readTime(com.google.cloud.Timestamp time)
ReadOption
that specifies read time, allowing Datastore to return results
from lookups and queries at a particular timestamp. This feature is currently in private
preview.@InternalApi public static ReadOption transactionId(String transactionId)
ReadOption
that specifies transaction id, allowing Datastore to execute a
Query
in this transaction.@InternalApi public static ReadOption transactionId(com.google.protobuf.ByteString transactionId)
ReadOption
that specifies transaction id, allowing Datastore to execute a
Query
in this transaction.Copyright © 2023 Google LLC. All rights reserved.