com.twitter.finagle.client

DefaultPool

case class DefaultPool[Req, Rep](low: Int = 0, high: Int = scala.Int.MaxValue, bufferSize: Int = 0, idleTime: Duration = com.twitter.util.Duration.Top, maxWaiters: Int = scala.Int.MaxValue, timer: Timer = ...) extends (StatsReceiver) ⇒ (ServiceFactory[Req, Rep]) ⇒ ServiceFactory[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) ⇒ (ServiceFactory[Req, Rep]) ⇒ ServiceFactory[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
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

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

    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: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. def andThen[A](g: ((ServiceFactory[Req, Rep]) ⇒ ServiceFactory[Req, Rep]) ⇒ A): (StatsReceiver) ⇒ A

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

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

    Definition Classes
    Any
  9. val bufferSize: Int

    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.

  10. def clone(): AnyRef

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

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

    Definition Classes
    AnyRef
  13. def finalize(): Unit

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

    Definition Classes
    AnyRef → Any
  15. val high: Int

    The high watermark.

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

  16. val idleTime: Duration

    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.

  17. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  18. val low: Int

    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.

  19. val maxWaiters: Int

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

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

    Definition Classes
    AnyRef
  21. final def notify(): Unit

    Definition Classes
    AnyRef
  22. final def notifyAll(): Unit

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

    Definition Classes
    AnyRef
  24. val timer: Timer

  25. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

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

Inherited from AnyRef

Inherited from Any

Ungrouped