OutboxLocksProvider

interface OutboxLocksProvider

Expects a distributed locks provider implementation.

The locks are to be used from multiple concurrent users of the library.

Functions

acquire
Link copied to clipboard
abstract fun acquire()

Acquires a lock, waiting if it's not available (blocking).

release
Link copied to clipboard
abstract fun release()

Release the lock associated with the id.