Packages

package tunable

Ordering
  1. Alphabetic
Visibility
  1. Public
  2. Protected

Package Members

  1. package linter

Type Members

  1. final class JsonTunableMapper extends AnyRef

    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",
           "comment": "optional comment"
         }
     ]

    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

    TunableMap loaded through com.twitter.app.LoadService.

  3. sealed abstract class Tunable[T] extends AnyRef

    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

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

Value Members

  1. object JsonTunableMapper
  2. object NullTunableMap extends TunableMap

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

  3. object ServiceLoadedTunableMap
  4. object Tunable
  5. object TunableMap

Ungrouped