An Identity provides identifying metadata for a process.
Identifiers provide a uniform method of accessing identifying
data for processes running in different environments.
They are identified by a scheme and id. The scheme provides
the name of the Identifier, and provides a context for id. The
id will be None if the Identifier cannot resolve information
for the process, or Some[String] if information is available.
Identities have an associated priority, to allow for ordering
when enumerating multiple Identities.
These are loaded by Finagle through the
service loading mechanism. Thus, in
order to implement a new Identity, a class implementing Identity with a
0-arg constructor must be registered in a file named
META-INF/services/com.twitter.finagle.serverset2.Identity included in the
classpath; see Oracle's
ServiceLoader
documentation for further details.
An Identity provides identifying metadata for a process. Identifiers provide a uniform method of accessing identifying data for processes running in different environments.
They are identified by a
scheme
andid
. Thescheme
provides the name of the Identifier, and provides a context forid
. Theid
will be None if the Identifier cannot resolve information for the process, or Some[String] if information is available.Identities have an associated priority, to allow for ordering when enumerating multiple Identities.
These are loaded by Finagle through the service loading mechanism. Thus, in order to implement a new Identity, a class implementing
Identity
with a 0-arg constructor must be registered in a file namedMETA-INF/services/com.twitter.finagle.serverset2.Identity
included in the classpath; see Oracle's ServiceLoader documentation for further details.