Class/Object

com.twitter.finagle.client

DefaultPool

Related Docs: object DefaultPool | package client

Permalink

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.

Linear Supertypes
Serializable, Serializable, Product, Equals, (StatsReceiver) ⇒ Transformer[Req, Rep], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. DefaultPool
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. Function1
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new DefaultPool(low: Int = 0, high: Int = Int.MaxValue, bufferSize: Int = 0, idleTime: Duration = Duration.Top, maxWaiters: Int = Int.MaxValue, timer: Timer = DefaultTimer)

    Permalink

    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

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def andThen[A](g: (Transformer[Req, Rep]) ⇒ A): (StatsReceiver) ⇒ A

    Permalink
    Definition Classes
    Function1
    Annotations
    @unspecialized()
  5. def apply(statsReceiver: StatsReceiver): (ServiceFactory[Req, Rep]) ⇒ ServiceFactory[Req, Rep]

    Permalink
    Definition Classes
    DefaultPool → Function1
  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. val bufferSize: Int

    Permalink

    Specifies the size of the lock-free buffer in front of the pool configuration.

    Specifies the size of the lock-free buffer in front of the pool configuration. Skipped if 0.

  8. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. def compose[A](g: (A) ⇒ StatsReceiver): (A) ⇒ Transformer[Req, Rep]

    Permalink
    Definition Classes
    Function1
    Annotations
    @unspecialized()
  10. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  11. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  13. val high: Int

    Permalink

    The high watermark.

    The high watermark. The pool will not maintain more connections than this.

  14. val idleTime: Duration

    Permalink

    The amount of idle time for which a connection is cached.

    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.

  15. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  16. val low: Int

    Permalink

    The low watermark used in the Watermark pool.

    The low watermark used in the Watermark pool. If there is sufficient request concurrency, no fewer connections will be maintained by the pool.

  17. val maxWaiters: Int

    Permalink

    The maximum number of connection requests that are queued when the connection concurrency exceeds the high watermark.

  18. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  19. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  20. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  21. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  22. val timer: Timer

    Permalink
  23. def toString(): String

    Permalink
    Definition Classes
    Function1 → AnyRef → Any
  24. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from (StatsReceiver) ⇒ Transformer[Req, Rep]

Inherited from AnyRef

Inherited from Any

Ungrouped