package factory
- Alphabetic
- Public
- Protected
Type Members
- class ServiceFactoryCache[Key, Req, Rep] extends Closable
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.
- class StatsFactoryWrapper[Req, Rep] extends ServiceFactoryProxy[Req, Rep]
A com.twitter.finagle.ServiceFactoryProxy that tracks statistics on com.twitter.finagle.Service creation failures and service acquisition latency.
- class TimeoutFactory[Req, Rep] extends ServiceFactoryProxy[Req, Rep]
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
- object TimeoutFactory