Class: RailsTransactionalOutbox::NullLockClient
- Inherits:
-
Object
- Object
- RailsTransactionalOutbox::NullLockClient
- Defined in:
- lib/rails_transactional_outbox/null_lock_client.rb
Class Method Summary collapse
Class Method Details
.lock(resource_key, expiration_time) {|payload| ... } ⇒ Object
5 6 7 8 9 10 11 12 13 |
# File 'lib/rails_transactional_outbox/null_lock_client.rb', line 5 def self.lock(resource_key, expiration_time) payload = { validity: expiration_time, resource: resource_key, value: "null_lock_client_lock" } yield payload end |