Returns a new com.twitter.finagle.Address with attached weight metadata.
Returns a new com.twitter.finagle.Address with attached weight metadata. If the weight entry already exists in the metadata, it is overwritten.
Extracts weight from metadata and returns an unweighted copy of
addr
.
Extracts weight from metadata and returns an unweighted copy of
addr
. Returns the default value (1.0) if weight entry does not exist.
A variant of extract
that pattern matches against weight metadata,
returning the unweighted address and weight.
A variant of extract
that pattern matches against weight metadata,
returning the unweighted address and weight. Note that the input
will always match, even if weight metadata is not present (in which
case it returns the default weight 1.0).
This object contains utility functions for adding and removing weight metadata for com.twitter.finagle.Address.
These weights are consumed by a com.twitter.finagle.factory.TrafficDistributor.