Sha256: d38b026993c828222e392d3517290d404751479c4b326158a8a62220e7c4c846

Contents?: true

Size: 305 Bytes

Versions: 6

Compression:

Stored size: 305 Bytes

Contents

# frozen_string_literal: true

class RailsTransactionalOutbox
  class NullLockClient
    def self.lock(resource_key, expiration_time)
      payload = {
        validity: expiration_time,
        resource: resource_key,
        value: "null_lock_client_lock"
      }

      yield payload
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rails-transactional-outbox-1.0.0 lib/rails_transactional_outbox/null_lock_client.rb
rails-transactional-outbox-0.4.0 lib/rails_transactional_outbox/null_lock_client.rb
rails-transactional-outbox-0.3.1 lib/rails_transactional_outbox/null_lock_client.rb
rails-transactional-outbox-0.3.0 lib/rails_transactional_outbox/null_lock_client.rb
rails-transactional-outbox-0.2.1 lib/rails_transactional_outbox/null_lock_client.rb
rails-transactional-outbox-0.2.0 lib/rails_transactional_outbox/null_lock_client.rb