Skip to content

Commit

Permalink
Improve eventual consistency javadoc
Browse files Browse the repository at this point in the history
  • Loading branch information
Ajay Kannan committed Mar 1, 2016
1 parent 76e3b3e commit 8a43d04
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ public abstract class ReadOption implements Serializable {
private static final long serialVersionUID = -4406964829189800528L;

/**
* Specifies eventual consistency for reads from Datastore.
* Specifies eventual consistency for reads from Datastore. Lookup and query operations using this
* option permit Datastore to return stale results.
*/
public static final class EventualConsistency extends ReadOption {

Expand All @@ -50,7 +51,8 @@ public boolean isEventual() {
private ReadOption() {}

/**
* Returns a {@code ReadOption} that specifies eventual consistency.
* Returns a {@code ReadOption} that specifies eventual consistency, allowing Datastore to return
* stale results for getting/fetching entities or running queries.
*/
public static EventualConsistency eventualConsistency() {
return new EventualConsistency(true);
Expand Down

0 comments on commit 8a43d04

Please sign in to comment.