Reserve the use of a given service instance.
Reserve the use of a given service instance. This pins the underlying channel and the returned service has exclusive use of its underlying connection. 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.
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.
(Since version 5.0.1) use apply() instead
The watermark pool is an object pool with low & high watermarks. It keeps the number of services from a given service factory in a certain range.
This behaves as follows: the pool will persist up to the low watermark number of items (as long as they have been created), and won't start queueing requests until the high watermark has been reached. Put another way: up to
lowWatermark' items may persist indefinitely, while there are at no times more than
highWatermark' items in concurrent existence.