Builder

org.typelevel.keypool.KeyPool.Builder
See theBuilder companion object
final class Builder[F[_], A, B]

Attributes

Companion
object
Source
KeyPool.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def build: Resource[F, KeyPool[F, A, B]]

Attributes

Source
KeyPool.scala
def doOnCreate(f: B => F[Unit]): Builder[F, A, B]

Attributes

Source
KeyPool.scala
def doOnDestroy(f: B => F[Unit]): Builder[F, A, B]

Attributes

Source
KeyPool.scala
def withDefaultReuseState(defaultReuseState: Reusable): Builder[F, A, B]

Attributes

Source
KeyPool.scala
def withIdleTimeAllowedInPool(duration: Duration): Builder[F, A, B]

Attributes

Source
KeyPool.scala
def withMaxIdle(maxIdle: Int): Builder[F, A, B]

Attributes

Source
KeyPool.scala
def withMaxPerKey(f: A => Int): Builder[F, A, B]

Attributes

Source
KeyPool.scala
def withMaxTotal(total: Int): Builder[F, A, B]

Attributes

Source
KeyPool.scala
def withOnReaperException(f: Throwable => F[Unit]): Builder[F, A, B]

Attributes

Source
KeyPool.scala

Concrete fields

val idleTimeAllowedInPool: Duration

Attributes

Source
KeyPool.scala

Attributes

Source
KeyPool.scala
val kpMaxIdle: Int

Attributes

Source
KeyPool.scala
val kpMaxPerKey: A => Int

Attributes

Source
KeyPool.scala
val kpMaxTotal: Int

Attributes

Source
KeyPool.scala
val kpRes: A => Resource[F, B]

Attributes

Source
KeyPool.scala
val onReaperException: Throwable => F[Unit]

Attributes

Source
KeyPool.scala