Binds a Dst to a ServiceFactory.
Binds a Dst to a ServiceFactory.
Here, we're basically replicating the logic from Finagle's BindingFactory. This is done so we bind a destination before creating a client so that multiple requests to a single bound destination may share connection pools etc.
The logic has been changed to account for the way residuals play into naming. We use the helper classes Bound and BoundTree instead of Name.Bound and NameTree[Name.Bound] so that we can control when residual paths factor into caching.
The capacities for each layer of dst caching.
A convenience type for a function that modifies (e.g.
A convenience type for a function that modifies (e.g. filters) a ServiceFactory using a T-typed value.
Ensures that a DstBindignFactory is only closed when all users of the factory have closed it.
Ensures that a DstBindignFactory is only closed when all users of the factory have closed it.
Note that acquire() / close() are only expected to be called in the context of process configuration and not, for example, in the request serving path.