Package

com.twitter.finagle

pool

Permalink

package pool

Visibility
  1. Public
  2. All

Type Members

  1. class BufferingPool[Req, Rep] extends ServiceFactoryProxy[Req, Rep]

    Permalink

    Buffers up to size connections and produces/closes new ones beyond that limit.

    Buffers up to size connections and produces/closes new ones beyond that limit.

    See also

    The user guide for more details.

  2. class SingletonPool[Req, Rep] extends ServiceFactory[Req, Rep]

    Permalink

    A pool that maintains at most one service from the underlying ServiceFactory -- concurrent leases share the same, cached service.

    A pool that maintains at most one service from the underlying ServiceFactory -- concurrent leases share the same, cached service. A new Service is established whenever the service factory fails or the current service has become unavailable.

  3. final class WatermarkPool[Req, Rep] extends ServiceFactory[Req, Rep]

    Permalink

    The watermark pool is an object pool with low & high watermarks.

    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.

    See also

    The user guide for more details.

Ungrouped