Module: DistributeReads
- Defined in:
- lib/resilient_reads.rb
Overview
Backward-compatible constant so existing initializers using DistributeReads.eager_load = true etc. still work.
Defined Under Namespace
Classes: TooMuchLag
Class Method Summary collapse
- .by_default ⇒ Object
- .by_default=(val) ⇒ Object
- .default_options ⇒ Object
- .default_options=(val) ⇒ Object
- .eager_load ⇒ Object
- .eager_load=(val) ⇒ Object
- .logger ⇒ Object
- .logger=(val) ⇒ Object
- .replication_lag ⇒ Object
Class Method Details
.by_default ⇒ Object
290 291 292 |
# File 'lib/resilient_reads.rb', line 290 def by_default ResilientReads.config.by_default end |
.by_default=(val) ⇒ Object
286 287 288 |
# File 'lib/resilient_reads.rb', line 286 def by_default=(val) ResilientReads.config.by_default = val end |
.default_options ⇒ Object
298 299 300 |
# File 'lib/resilient_reads.rb', line 298 def ResilientReads.config. end |
.default_options=(val) ⇒ Object
294 295 296 |
# File 'lib/resilient_reads.rb', line 294 def (val) ResilientReads.config. = val end |
.eager_load ⇒ Object
282 283 284 |
# File 'lib/resilient_reads.rb', line 282 def eager_load ResilientReads.config.eager_load end |
.eager_load=(val) ⇒ Object
278 279 280 |
# File 'lib/resilient_reads.rb', line 278 def eager_load=(val) ResilientReads.config.eager_load = val end |
.logger ⇒ Object
306 307 308 |
# File 'lib/resilient_reads.rb', line 306 def logger ResilientReads.config.logger end |
.logger=(val) ⇒ Object
302 303 304 |
# File 'lib/resilient_reads.rb', line 302 def logger=(val) ResilientReads.config.logger = val end |
.replication_lag ⇒ Object
310 311 312 |
# File 'lib/resilient_reads.rb', line 310 def replication_lag ResilientReads.replication_lag end |