MongoMetricRepository

uk.gov.hmrc.mongo.metrix.MongoMetricRepository
@Singleton
class MongoMetricRepository(mongoComponent: MongoComponent)(implicit ec: ExecutionContext) extends PlayMongoRepository[PersistedMetric], MetricRepository

Attributes

Graph
Supertypes
class PlayMongoRepository[PersistedMetric]
trait ObservableFutureImplicits
trait MongoDatabaseCollection
class Object
trait Matchable
class Any
Show all

Members list

Type members

Inherited classlikes

implicit class ObservableFuture[T](obs: => Observable[T]) extends ObservableFuture[T]

Attributes

Inherited from:
ObservableFutureImplicits
Supertypes
class ObservableImplicits.this.ObservableFuture[T]
class Object
trait Matchable
class Any
implicit class SingleObservableFuture[T](obs: => SingleObservable[T]) extends SingleObservableFuture[T]

Attributes

Inherited from:
ObservableFutureImplicits
Supertypes
class ObservableImplicits.this.SingleObservableFuture[T]
class Object
trait Matchable
class Any

Value members

Concrete methods

override def findAll(): Future[List[PersistedMetric]]

Attributes

Definition Classes
override def putAll(metrics: Seq[PersistedMetric]): Future[Unit]

Attributes

Definition Classes

Inherited methods

def ensureIndexes(): Future[Seq[String]]

Attributes

Inherited from:
PlayMongoRepository
def ensureSchema(): Future[Unit]

Attributes

Inherited from:
PlayMongoRepository

Concrete fields

lazy override val requiresTtlIndex: Boolean

Can be overridden if the repository manages it's own data cleanup.

Can be overridden if the repository manages it's own data cleanup.

A comment should be added to document why the repository does't require a ttl index if overriding.

Attributes

Inherited fields

lazy val collection: MongoCollection[PersistedMetric]

Attributes

Inherited from:
PlayMongoRepository
final val collectionName: String

Attributes

Inherited from:
PlayMongoRepository
final val domainFormat: Format[PersistedMetric]

Attributes

Inherited from:
PlayMongoRepository
final val indexes: Seq[IndexModel]

Attributes

Inherited from:
PlayMongoRepository
lazy val initialised: Future[Unit]

Attributes

Inherited from:
PlayMongoRepository
final val optSchema: Option[BsonDocument]

Attributes

Inherited from:
PlayMongoRepository

Implicits

Inherited implicits

final implicit def ObservableFuture[T](obs: => Observable[T]): ObservableFuture[T]

Attributes

Inherited from:
ObservableFutureImplicits
final implicit def SingleObservableFuture[T](obs: => SingleObservable[T]): SingleObservableFuture[T]

Attributes

Inherited from:
ObservableFutureImplicits