Request a timeline-consistent read
You can use request a timeline-consistent read in your application.
To request a timeline-consistent read in your application, use the
get.setConsistency(Consistency.TIMELINE)
method before
performing the Get
or Scan
operation.
To check whether the result is stale (comes from a secondary replica), use the
isStale()
method of the result object. Use the following
examples for reference.