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

com.twitter.finagle.stats.SchemaRegistry.scala Maven / Gradle / Ivy

There is a newer version: 24.2.0
Show newest version
package com.twitter.finagle.stats

import com.twitter.finagle.stats.exp.{ExpressionSchema, ExpressionSchemaKey}

/**
 * Interface used via the LoadService mechanism to obtain an
 * efficient mechanism to sample stats.
 */
private[twitter] trait SchemaRegistry {

  /** Whether or not the counters are latched. */
  def hasLatchedCounters: Boolean

  def schemas(): Map[String, MetricBuilder]

  def expressions(): Map[ExpressionSchemaKey, ExpressionSchema]

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy