main.io.github.bluegroundltd.outbox.OutboxLocksProvider.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of transactional-outbox-core Show documentation
Show all versions of transactional-outbox-core Show documentation
Easily implement the transactional outbox pattern in your JVM application
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