module AWS::SimpleDB::ConsistentReadOption

@private

Public Instance Methods

consistent_read(options) click to toggle source

Determines if SimpleDB should be read consistently or not.

Precedence is given to:

@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