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
289 290 291 |
# File 'lib/resilient_reads.rb', line 289 def by_default ResilientReads.config.by_default end |
.by_default=(val) ⇒ Object
285 286 287 |
# File 'lib/resilient_reads.rb', line 285 def by_default=(val) ResilientReads.config.by_default = val end |
.default_options ⇒ Object
297 298 299 |
# File 'lib/resilient_reads.rb', line 297 def ResilientReads.config. end |
.default_options=(val) ⇒ Object
293 294 295 |
# File 'lib/resilient_reads.rb', line 293 def (val) ResilientReads.config. = val end |
.eager_load ⇒ Object
281 282 283 |
# File 'lib/resilient_reads.rb', line 281 def eager_load ResilientReads.config.eager_load end |
.eager_load=(val) ⇒ Object
277 278 279 |
# File 'lib/resilient_reads.rb', line 277 def eager_load=(val) ResilientReads.config.eager_load = val end |
.logger ⇒ Object
305 306 307 |
# File 'lib/resilient_reads.rb', line 305 def logger ResilientReads.config.logger end |
.logger=(val) ⇒ Object
301 302 303 |
# File 'lib/resilient_reads.rb', line 301 def logger=(val) ResilientReads.config.logger = val end |
.replication_lag ⇒ Object
309 310 311 |
# File 'lib/resilient_reads.rb', line 309 def replication_lag ResilientReads.replication_lag end |