Package

com.twitter.finagle

factory

Permalink

package factory

Visibility
  1. Public
  2. All

Type Members

  1. class ServiceFactoryCache[Key, Req, Rep] extends Closable

    Permalink

    A "read-through" cache of service factories.

    A "read-through" cache of service factories.

    Eviction is based on cache size and idle time:

    1. When the cache is full, a miss evicts the most idle factory. When no underlying factories are idle, a one-shot factory is created. This doesn't necessarily guarantee good performance: one-shots could be created constantly for a hot cache key, but should work well when there are a few hot keys.

    2. Periodically evict factories that are idle for at least one TTI (time-to-idle) period. An idle factory could remain in the cache for up to (TTI * 2) minutes, with the caveat that we never expire the last, least-idle entry.

  2. class StatsFactoryWrapper[Req, Rep] extends ServiceFactoryProxy[Req, Rep]

    Permalink

    A com.twitter.finagle.ServiceFactoryProxy that tracks statistics on com.twitter.finagle.Service creation failures and service acquisition latency.

  3. class TimeoutFactory[Req, Rep] extends ServiceFactoryProxy[Req, Rep]

    Permalink

    A factory wrapper that times out the service acquisition after the given time.

    A factory wrapper that times out the service acquisition after the given time.

    See also

    The user guide for more details.

Value Members

  1. object TimeoutFactory

    Permalink

Ungrouped