Object/Class

com.twitter.finagle.toggle

ToggleMap

Related Docs: class ToggleMap | package toggle

Permalink

object ToggleMap

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ToggleMap
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. class Immutable extends ToggleMap

    Permalink

    A ToggleMap implementation based on immutable Toggle.Metadata.

  2. abstract class Mutable extends ToggleMap

    Permalink

    The ToggleMap interface is read only and this is the mutable side of it.

    The ToggleMap interface is read only and this is the mutable side of it.

    Implementations are expected to be thread-safe.

  3. trait Proxy extends AnyRef

    Permalink

    A ToggleMap that proxies work to underlying.

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. val Off: ToggleMap

    Permalink

    A ToggleMap which returns Toggle.off for all ids.

    A ToggleMap which returns Toggle.off for all ids.

    Note

    ToggleMap.iterator will always be empty.

  5. val On: ToggleMap

    Permalink

    A ToggleMap which returns Toggle.on for all ids.

    A ToggleMap which returns Toggle.on for all ids.

    Note

    ToggleMap.iterator will always be empty.

  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def components(toggleMap: ToggleMap): Seq[ToggleMap]

    Permalink

    For some administrative purposes, it can be useful to get at the component ToggleMaps that may make up a ToggleMap.

    For some administrative purposes, it can be useful to get at the component ToggleMaps that may make up a ToggleMap.

    For example:

    val toggleMap1: ToggleMap = ...
    val toggleMap2: ToggleMap = ...
    val combined = toggleMap1.orElse(toggleMap2)
    assert(Seq(toggleMap1, toggleMap2) == ToggleMap.components(combined))
  9. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  10. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  11. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. val flags: ToggleMap

    Permalink

    A ToggleMap that is backed by a com.twitter.app.GlobalFlag, flag.overrides.

    A ToggleMap that is backed by a com.twitter.app.GlobalFlag, flag.overrides.

    Its Toggles will reflect changes to the underlying Flag which enables usage in tests.

    Fractions that are out of range (outside of [0.0-1.0]) will be ignored.

    Note

    that inputs to Toggle.apply will be modified to promote better distributions in the face of low entropy inputs.

  13. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  14. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  15. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  16. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  17. def newMutable(source: String): Mutable

    Permalink

    Create an empty Mutable instance with the given Metadata.source.

    Create an empty Mutable instance with the given Metadata.source.

    Note

    that inputs to Toggle.apply will be modified to promote better distributions in the face of low entropy inputs.

  18. def newMutable(): Mutable

    Permalink

    Create an empty Mutable instance with a default Metadata.source specified.

    Create an empty Mutable instance with a default Metadata.source specified.

    Note

    that inputs to Toggle.apply will be modified to promote better distributions in the face of low entropy inputs.

  19. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  20. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  21. def observed(toggleMap: ToggleMap, statsReceiver: StatsReceiver): ToggleMap

    Permalink

    Creates a ToggleMap with a Gauge, "checksum", which summarizes the current state of the Toggles which may be useful for comparing state across a cluster or over time.

    Creates a ToggleMap with a Gauge, "checksum", which summarizes the current state of the Toggles which may be useful for comparing state across a cluster or over time.

    statsReceiver

    in typical usage by StandardToggleMap, will be scoped to "toggles/$libraryName".

  22. def of(toggleMaps: ToggleMap*): ToggleMap

    Permalink

    Create a ToggleMap out of the given ToggleMaps.

    Create a ToggleMap out of the given ToggleMaps.

    If toggleMaps is empty, NullToggleMap will be returned.

    Annotations
    @varargs()
  23. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  24. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  25. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped