Package

com.twitter.util

tunable

Permalink

package tunable

Visibility
  1. Public
  2. All

Type Members

  1. final class JsonTunableMapper extends AnyRef

    Permalink

    Parses a given JSON string into a TunableMap.

    Parses a given JSON string into a TunableMap. The expected format is:

    { "tunables": [ { "id" : "$id1", "value" : $value, "type" : "$class" }, { "id" : "$id2", "value" : $value, "type" : "$class" } ] }

    Where $id1 and $id2 are unique identifiers used to access the Tunable, $value is the value, and $class is the fully-qualified class name (e.g. com.twitter.util.Duration)

    If the JSON is invalid, or contains duplicate ids for Tunables, parse will return a Throw. Otherwise, parse returns Return[TunableMap

  2. trait ServiceLoadedTunableMap extends TunableMap

    Permalink

    TunableMap loaded through com.twitter.app.LoadService.

  3. sealed abstract class Tunable[T] extends AnyRef

    Permalink

    A Tunable is an abstraction for an object that produces a Some(value) or None when applied.

    A Tunable is an abstraction for an object that produces a Some(value) or None when applied. Implementations may enable mutation, such that successive applications of the Tunable produce different values.

    For more information about Tunables, see https://twitter.github.io/finagle/guide/Configuration.html#tunables

    T

    type of value this Tunable holds

  4. abstract class TunableMap extends AnyRef

    Permalink

    A Map that can be used to access Tunables using TunableMap.Keys.

Value Members

  1. object JsonTunableMapper

    Permalink
  2. object NullTunableMap extends TunableMap

    Permalink

    A TunableMap that returns a Tunable.none for every TunableMap.Key

  3. object ServiceLoadedTunableMap

    Permalink
  4. object Tunable

    Permalink
  5. object TunableMap

    Permalink
  6. package linter

    Permalink

Ungrouped