Reserve the use of the returned Service instance.
Reserve the use of the returned Service instance.
To relinquish the use of the reserved Service, the user must call Service.close().
will be ClientConnection.nil when called on the client-side.
Reserve the use of the returned Service instance using ClientConnection.nil.
Reserve the use of the returned Service instance using ClientConnection.nil.
To relinquish the use of the reserved Service, the user must call Service.close().
Apply f on created services, returning the resulting Future in their
stead.
Apply f on created services, returning the resulting Future in their
stead. This is useful for implementing common factory wrappers that
only need to modify or operate on the underlying service.
Return true if and only if status is currently Status.Open.
Return true if and only if status is currently Status.Open.
Map created services.
Map created services. Useful for implementing common styles of factory wrappers.
The current availability Status of this ServiceFactory
The current availability Status of this ServiceFactory
Make a service that after dispatching a request on that service, releases the service.
Make a service that after dispatching a request on that service, releases the service.
A factory that routes to the local binding of the passed-in Path. It calls
newFactoryto 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).