All Downloads are FREE. Search and download functionalities are using the official Maven repository.

main.io.github.bluegroundltd.outbox.OutboxLocksProvider.kt Maven / Gradle / Ivy

There is a newer version: 2.3.2
Show newest version
package io.github.bluegroundltd.outbox

/**
 * Expects a distributed locks provider implementation.
 *
 * The locks are to be used from multiple concurrent users of the library.
 */
interface OutboxLocksProvider {

  /**
   * Acquires a lock, waiting if it's not available (blocking).
   */
  fun acquire()

  /**
   * Release the lock associated with the id.
   */
  fun release()
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy