trait ServiceLoadedToggleMap extends ToggleMap
A ServiceLoadedToggleMap is a ToggleMap that uses util-app's
service loading mechanism (see com.twitter.app.LoadService) to be loaded.
- See also
- Alphabetic
- By Inheritance
- ServiceLoadedToggleMap
- ToggleMap
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Abstract Value Members
-
abstract
def
apply(id: String): Toggle[Int]
Get a Toggle for this
id.Get a Toggle for this
id.The
Toggle.isDefinedmethod should returnfalseif the ToggleMap does not know about that Toggle or it is currently not "operating" on thatid.- 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".
-
abstract
def
iterator: Iterator[Metadata]
- Definition Classes
- ToggleMap
-
abstract
def
libraryName: String
The identifier for this library.
The identifier for this library.
Used so that multiple libraries can each have their own backing ServiceLoadedToggleMap.
Concrete 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
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate() @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
get(id: String): Toggle[Integer]
Get a Toggle for this
id.Get a Toggle for this
id. Java-friendly synonym forapply.The
Toggle.isDefinedmethod should returnfalseif the ToggleMap does not know about that Toggle or it is currently not "operating" on thatid.- 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".
- Definition Classes
- ToggleMap
- Note
this returns a
java.lang.Integerfor Java compatibility.
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
orElse(that: ToggleMap): ToggleMap
Creates a ToggleMap which uses
thisbeforethat.Creates a ToggleMap which uses
thisbeforethat.apply returns a Toggle that uses the Toggle from
thisif itisDefinedAtfor the input, before tryingthat.iterator includes metadata from both
selfandthat, withself's metadata taking precedence on conflicting ids. Note however that if aToggleMetadata.descriptionis not defined onself, the description fromthatwill be preferred. This is done because many sources ofToggleMapsdo not have a description defined and we want to surface that information.- Definition Classes
- ToggleMap
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
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( ... )
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )