com.twitter.finagle.client

DefaultPool

case class DefaultPool[Req, Rep](low: Int, high: Int, bufferSize: Int, idleTime: Duration, maxWaiters: Int, 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. Hide All
  2. Show all
  1. DefaultPool
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. Function1
  7. AnyRef
  8. Any
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
  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 canEqual(arg0: Any): Boolean

    Definition Classes
    DefaultPool → Equals
  11. def clone(): AnyRef

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

    Definition Classes
    Function1
  13. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  14. def equals(arg0: Any): Boolean

    Definition Classes
    DefaultPool → Equals → AnyRef → Any
  15. def finalize(): Unit

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

    Definition Classes
    AnyRef → Any
  17. def hashCode(): Int

    Definition Classes
    DefaultPool → AnyRef → Any
  18. val high: Int

    The high watermark.

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

  19. 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.

  20. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  21. 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.

  22. val maxWaiters: Int

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

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

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

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

    Definition Classes
    AnyRef
  26. def productArity: Int

    Definition Classes
    DefaultPool → Product
  27. def productElement(arg0: Int): Any

    Definition Classes
    DefaultPool → Product
  28. def productIterator: Iterator[Any]

    Definition Classes
    Product
  29. def productPrefix: String

    Definition Classes
    DefaultPool → Product
  30. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  31. val timer: Timer

  32. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()

Deprecated Value Members

  1. def productElements: Iterator[Any]

    Definition Classes
    Product
    Annotations
    @deprecated
    Deprecated

    (Since version 2.8.0) use productIterator instead

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