case class DefaultPool[Req, Rep](low: Int = 0, high: Int = Int.MaxValue, bufferSize: Int = 0, idleTime: Duration = Duration.Top, maxWaiters: Int = Int.MaxValue, timer: Timer = DefaultTimer) extends (StatsReceiver) => Transformer[Req, Rep] with Product with Serializable
Create a watermark pool backed by a caching pool. This is the default pooling setup of Finagle.
- low
The low watermark used in the Watermark pool. If there is sufficient request concurrency, no fewer connections will be maintained by the pool.
- high
The high watermark. The pool will not maintain more connections than this.
- bufferSize
Specifies the size of the lock-free buffer in front of the pool configuration. Skipped if 0.
- idleTime
The amount of idle time for which a connection is cached. This is applied to connections that number greater than the low watermark but fewer than the high.
- maxWaiters
The maximum number of connection requests that are queued when the connection concurrency exceeds the high watermark.
- Alphabetic
- By Inheritance
- DefaultPool
- Serializable
- Product
- Equals
- Function1
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new DefaultPool(low: Int = 0, high: Int = Int.MaxValue, bufferSize: Int = 0, idleTime: Duration = Duration.Top, maxWaiters: Int = Int.MaxValue, timer: Timer = DefaultTimer)
- low
The low watermark used in the Watermark pool. If there is sufficient request concurrency, no fewer connections will be maintained by the pool.
- high
The high watermark. The pool will not maintain more connections than this.
- bufferSize
Specifies the size of the lock-free buffer in front of the pool configuration. Skipped if 0.
- idleTime
The amount of idle time for which a connection is cached. This is applied to connections that number greater than the low watermark but fewer than the high.
- maxWaiters
The maximum number of connection requests that are queued when the connection concurrency exceeds the high watermark.
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def andThen[A](g: (Transformer[Req, Rep]) => A): (StatsReceiver) => A
- Definition Classes
- Function1
- Annotations
- @unspecialized()
- def apply(statsReceiver: StatsReceiver): (ServiceFactory[Req, Rep]) => ServiceFactory[Req, Rep]
- Definition Classes
- DefaultPool → Function1
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- val bufferSize: Int
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def compose[A](g: (A) => StatsReceiver): (A) => Transformer[Req, Rep]
- Definition Classes
- Function1
- Annotations
- @unspecialized()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- val high: Int
- val idleTime: Duration
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val low: Int
- val maxWaiters: Int
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- val timer: Timer
- def toString(): String
- Definition Classes
- Function1 → AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()