freckle-app-1.15.5.0: Haskell application toolkit used at Freckle
Safe HaskellSafe-Inferred
LanguageHaskell2010

Freckle.App.Faktory.ProducerPool

Documentation

data FaktoryProducerPoolConfig Source #

Constructors

FaktoryProducerPoolConfig 

Fields

  • faktoryProducerPoolConfigStripes :: Int

    The number of stripes (distinct sub-pools) to maintain. The smallest acceptable value is 1.

  • faktoryProducerPoolConfigIdleTimeout :: NominalDiffTime

    Amount of time for which an unused resource is kept open. The smallest acceptable value is 0.5 seconds.

    The elapsed time before destroying a resource may be a little longer than requested, as the reaper thread wakes at 1-second intervals.

  • faktoryProducerPoolConfigSize :: Int

    Maximum number of resources to keep open per stripe. The smallest acceptable value is 1.

    Requests for resources will block if this limit is reached on a single stripe, even if other stripes have idle resources available.