package tunable
- Alphabetic
- Public
- Protected
Type Members
- 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 - trait ServiceLoadedTunableMap extends TunableMap
TunableMap loaded through
com.twitter.app.LoadService
. - 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
- abstract class TunableMap extends AnyRef
A Map that can be used to access Tunables using TunableMap.Keys.
Value Members
- object JsonTunableMapper
- object NullTunableMap extends TunableMap
A TunableMap that returns a Tunable.none for every TunableMap.Key
- object ServiceLoadedTunableMap
- object Tunable
- object TunableMap