Get a Toggle for this id
.
Get a Toggle for this id
.
The Toggle.isDefined
method should return false
if the
ToggleMap does not know about that Toggle
or it is currently not "operating" on that id
.
the identifying name of the Toggle
.
These should generally be fully qualified names to avoid conflicts
between libraries. For example, "com.twitter.finagle.CoolThing".
Creates a ToggleMap which uses this
before that
.
Creates a ToggleMap which uses this
before that
.
apply returns a Toggle that uses the Toggle from this
if it isDefinedAt
for the input, before trying that
.
iterator includes metadata from both self
and that
,
with self
's metadata taking precedence on conflicting ids.
Note however that if a ToggleMetadata.description
is not defined on self
,
the description from that
will be preferred. This is done because many
sources of ToggleMaps
do not have a description defined and we want to
surface that information.
A collection of Int-typed toggles which can be used to build a form of feature toggles which allow for modifying behavior without changing code.
Expected usage is for code to have toggles passed into their constructors instead of dynamically creating new toggles on every call.
Feature Toggles for detailed discussion on the topic.
ServiceLoadedToggleMap and StandardToggleMap for typical usage entry points.
Toggle