Package

com.twitter.finagle

naming

Permalink

package naming

Visibility
  1. Public
  2. All

Type Members

  1. class BindingFactory[Req, Rep] extends ServiceFactory[Req, Rep]

    Permalink

    A factory that routes to the local binding of the passed-in Path.

    A factory that routes to the local binding of the passed-in Path. It calls newFactory to mint a new ServiceFactory for novel name evaluations.

    A three-level caching scheme is employed for efficiency:

    First, the ServiceFactory for a Path is cached by the local Dtab. This permits sharing in the common case that no local Dtab is given. (It also papers over the mutability of Dtab.base.)

    Second, the ServiceFactory for a Path (relative to a Dtab) is cached by the NameTree it is bound to by that Dtab. Binding a path results in an Activity, so this cache permits sharing when the same tree is returned in different updates of the Activity. (In particular it papers over nuisance updates of the Activity where the value is unchanged.)

    Third, the ServiceFactory for a Name.Bound appearing in a NameTree is cached by its Name.Bound. This permits sharing when the same Name.Bound appears in different NameTrees (or the same NameTree resulting from different bindings of the Path).

  2. case class DisplayBoundName(displayFn: (Bound) ⇒ String) extends Product with Serializable

    Permalink

    A class eligible for configuring how paths will be displayed in metrics metadata

  3. class MultipleNameInterpretersException extends IllegalStateException

    Permalink
  4. trait NameInterpreter extends AnyRef

    Permalink

    Interpret names against a Dtab.

    Interpret names against a Dtab. Differs from Namers in that the passed in Dtab can affect the resolution process.

  5. class NamerExceededMaxDepthException extends Exception

    Permalink

    Indicates an error in Namer lookup

Value Members

  1. object BindingFactory

    Permalink
  2. object DefaultInterpreter extends NameInterpreter

    Permalink

    Interpret names against the Dtab, using the default evaluation strategy.

    Interpret names against the Dtab, using the default evaluation strategy. Recursively look up and rewrite paths according to entries matching the path prefix in the Dtab. If a path does not match any Dtab entry prefix, the global Namer is invoked to resolve it. This is how paths starting with /$/ are bound.

  3. object DisplayBoundName extends Serializable

    Permalink
  4. object LoadedNameInterpreter extends LoadedNameInterpreter

    Permalink

    A NameInterpreter that delegates to a service-loaded NameInterpreter.

    A NameInterpreter that delegates to a service-loaded NameInterpreter.

    The existence of multiple service-loaded NameInterpreters is an illegal state. If no service-loaded NameInterpreters are found, use the DefaultInterpreter.

  5. object NameInterpreter extends NameInterpreter

    Permalink
  6. object namerMaxDepth extends GlobalFlag[Int]

    Permalink

Ungrouped