Class: RailsTransactionalOutbox::ExponentialBackoff
- Inherits:
-
Object
- Object
- RailsTransactionalOutbox::ExponentialBackoff
- Defined in:
- lib/rails_transactional_outbox/exponential_backoff.rb
Class Method Summary collapse
Class Method Details
.backoff_for(multiplier, count) ⇒ Object
5 6 7 |
# File 'lib/rails_transactional_outbox/exponential_backoff.rb', line 5 def self.backoff_for(multiplier, count) (multiplier * (2**count)) end |