LockRepository

uk.gov.hmrc.mongo.lock.LockRepository

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Abstract methods

def disownLock(lockId: String, owner: String, expiry: Option[Instant]): Future[Unit]
def isLocked(lockId: String, owner: String): Future[Boolean]
def refreshExpiry(lockId: String, owner: String, ttl: Duration): Future[Boolean]
def releaseLock(lockId: String, owner: String): Future[Unit]
def takeLock(lockId: String, owner: String, ttl: Duration): Future[Option[Lock]]