Object/Class

com.twitter.util.tunable

TunableMap

Related Docs: class TunableMap | package tunable

Permalink

object TunableMap

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

Type Members

  1. case class Entry[T](key: Key[T], value: T, source: String) extends Product with Serializable

    Permalink
  2. final case class Key[T](id: String, clazz: Class[T]) extends Product with Serializable

    Permalink

    Class used to retrieve a Tunable with id id of type T.

  3. abstract class Mutable extends TunableMap

    Permalink

    A TunableMap that can be updated via put and clear operations.

    A TunableMap that can be updated via put and clear operations. Putting a value for a given id will update the current value for the id, or create a new Tunable if it does not exist. The type of the new value must match that of the existing value, or a ClassCastException will be thrown.

    apply returns a Tunable for a given TunableMap.Key and creates it if does not already exist. Updates to the TunableMap update the underlying Tunables; for example, a Tunable returned from TunableMap.apply will produce an updated value when Tunable.apply() is called if the TunableMap is updated. clear clears the underlying Tunable for a given TunableMap.Key but does not remove it from the map; this has the effect that calling Tunable.apply() on a previously retrieved Tunable produces None. This behavior is desirable because a Tunable's value may be cleared and re-set, and we want Tunable applications to see those updates.

  4. trait Proxy extends TunableMap

    Permalink

    A TunableMap that forwards all calls 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. object Key extends Serializable

    Permalink
  5. final def asInstanceOf[T0]: T0

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. def components(tunableMap: TunableMap): Seq[TunableMap]

    Permalink

    Get the component TunableMaps that make up tunableMap.

    Get the component TunableMaps that make up tunableMap. For Composite TunableMaps, this returns a Seq of the components. Otherwise, it returns a Seq of tunableMap.

    Used for testing.

  8. final def eq(arg0: AnyRef): Boolean

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. final def getClass(): Class[_]

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

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

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

    Permalink
    Definition Classes
    AnyRef
  15. def newMutable(): Mutable

    Permalink
  16. def newMutable(source: String): Mutable

    Permalink

    Create a thread-safe map of Tunable.Mutables with the given source

  17. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  19. def of(tunableMaps: TunableMap*): TunableMap

    Permalink

    Create a TunableMap out of the given TunableMaps.

    Create a TunableMap out of the given TunableMaps.

    If tunableMaps is empty, NullTunableMap will be returned.

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

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

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

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

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

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

Inherited from AnyRef

Inherited from Any

Ungrouped