module AWS::SimpleDB::ConsistentReadOption
@api private
Public Instance Methods
consistent_read(options)
click to toggle source
Determines if SimpleDB should be read consistently or not.
Precedence is given to:
-
`:consistent_read` option
-
AWS::SimpleDB.consistent_reads block value
-
AWS.config.simple_db_consistent_reads?
@return [Boolean] Returns true if a read should be made consistently
to SimpleDB.
# File lib/aws/simple_db/consistent_read_option.rb, line 30 def consistent_read options if options.has_key?(:consistent_read) options[:consistent_read] ? true : false elsif SimpleDB.send(:in_consistent_reads_block?) SimpleDB.send(:consistent_reads_state) else config.simple_db_consistent_reads? end end