Method: Mongo::Cluster#read_retry_interval

Defined in:
lib/mongo/cluster.rb

#read_retry_intervalFloat

Deprecated.
Note:

read_retry_interval should be retrieved from the Client instance, not from a Cluster instance, because clusters may be shared between clients with different values for the read retry interval.

Get the interval, in seconds, in which read retries when using legacy read retries.

Examples:

Get the read retry interval.

cluster.read_retry_interval

Returns:

  • (Float)

    The interval.

Since:

  • 2.1.1



394
395
396
# File 'lib/mongo/cluster.rb', line 394

def read_retry_interval
  options[:read_retry_interval] || READ_RETRY_INTERVAL
end