< Back
 

# Packages

-  package root
  Definition Classes
    root
-  package uk
  Definition Classes
    root
-  package gov
  Definition Classes
    uk
-  package hmrc
  Definition Classes
    gov
-  package mongo
  Definition Classes
    hmrc
-  package cache
  Definition Classes
    mongo
-  package lock
  Definition Classes
    mongo
- Lock
- LockRepository
- LockService
- MongoLockRepository
- TimePeriodLockService
-  package play
  Definition Classes
    mongo

p

uk.gov.hmrc.mongo

# lock 

#### package lock

 
Ordering

1. Alphabetic

Visibility

1. Public
2. All

### Type Members

1.  case class Lock(id: String, owner: String, timeCreated: Instant, expiryTime: Instant) extends Product with Serializable
2.  trait LockRepository extends AnyRef
   Annotations
     @ImplementedBy()
3.  trait LockService extends AnyRef

   For locking for a particular task.

   For locking for a particular task. The lock will be released when the task has finished.

4.  class MongoLockRepository extends PlayMongoRepository[Lock] with LockRepository
   Annotations
     @Singleton()
5.  trait TimePeriodLockService extends AnyRef

   For locking for a give time period (i.e.

   For locking for a give time period (i.e. stop other instances executing the task until it stops renewing the lock). The lock will be held on to when the task has finished, until it expires.

### Value Members

1.  object Lock extends Serializable
2.  object LockService
3.  object TimePeriodLockService

### Ungrouped