object ToggleMap
- Alphabetic
- By Inheritance
- ToggleMap
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
class
Immutable extends ToggleMap
A ToggleMap implementation based on immutable Toggle.Metadata.
-
abstract
class
Mutable extends ToggleMap
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.
-
trait
Proxy extends AnyRef
A ToggleMap that proxies work to
underlying.
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
val
Off: ToggleMap
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.
-
val
On: ToggleMap
A ToggleMap which returns Toggle.on for all
ids.- Note
ToggleMap.iterator will always be empty.
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
components(toggleMap: ToggleMap): Seq[ToggleMap]
For some administrative purposes, it can be useful to get at the component
ToggleMapsthat may make up a ToggleMap.For some administrative purposes, it can be useful to get at the component
ToggleMapsthat 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))
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
val
flags: ToggleMap
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
Flagwhich 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.
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
newMutable(source: String): Mutable
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.
-
def
newMutable(): Mutable
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.
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
observed(toggleMap: ToggleMap, statsReceiver: StatsReceiver): ToggleMap
Creates a ToggleMap with a
Gauge, "checksum", which summarizes the current state of theToggleswhich 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 theToggleswhich may be useful for comparing state across a cluster or over time.- statsReceiver
in typical usage by StandardToggleMap, will be scoped to "toggles/$libraryName".
-
def
of(toggleMaps: ToggleMap*): ToggleMap
Create a ToggleMap out of the given ToggleMaps.
Create a ToggleMap out of the given ToggleMaps.
If
toggleMapsis empty, NullToggleMap will be returned.- Annotations
- @varargs()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )