Initial settings
Modulepoolboy-0.5.0.1Haskell2010
Data.Poolboy
Contents
Synopsis
- data PoolboySettings
- data WorkersCountSettings
- data PoolboyCommand
- value defaultPoolboySettings
- value poolboySettingsWith
- value poolboySettingsName
- value poolboySettingsLog
- value hoistPoolboySettings
- data WorkQueue
- value withPoolboy
- value newPoolboy
- value hoistWorkQueue
- value changeDesiredWorkersCount
- value waitReadyQueue
- value stopWorkQueue
- value isStoppedWorkQueue
- type WaitingStopStrategy
- value waitingStopTimeout
- value waitingStopFinishWorkers
- value enqueue
- value enqueueTracking
- value enqueueAfter
- value enqueueAfterTracking
- newtype WorkQueueStoppedException
- Packagepoolboy-0.5.0.1
- Exports24
- LanguageHaskell2010
- LicenceISC
- SourcePoolboy.hs
Configuration
Initial number of threads
Constructors
CapabilitiesWCSgetNumCapabilities based number
FixedWCS Int
Instances2Eq, Show
Eq WorkersCountSettingsDefined in poolboy-0.5.0.1 · Data.PoolboyShow WorkersCountSettingsDefined in poolboy-0.5.0.1 · Data.Poolboy
Commands performed on the queue
Constructors
CreatePool ThreadIdChangeDesiredWorkersCount ThreadId IntSetMaxWorkersCount ThreadId IntAddAvailableWorkers ThreadId IntWaitAvailableWorkers ThreadId IntSetStoppedWorkQueue ThreadIdWaitingStopFinishWorkers ThreadIdWaitingWorkersCompletion ThreadId [ThreadId]ResetMaxWorkers ThreadIdEmptyAvailableWorkers ThreadId IntWaitReady ThreadIdEnqueueAfter ThreadIdEnqueue ThreadIdEnsureRunning ThreadId BoolSpawnTask ThreadIdWaitAvailableWorker ThreadIdStartTask ThreadIdCompleteTask ThreadIdEnqueueRegisterTask ThreadId ThreadId
Instances2Eq, Show
Eq PoolboyCommandDefined in poolboy-0.5.0.1 · Data.PoolboyShow PoolboyCommandDefined in poolboy-0.5.0.1 · Data.Poolboy
Usual configuration CapabilitiesWCS and no name
Arbitrary-numbered of workers settings
Name of the work queue settings (used in error and debugging)
Name of the work queue settings (used in error and debugging)
Change PoolboySettings monad
Running
backet-based usage (recommended)
Standalone/manual usage
Change WorkQueue monad
Driving
Request a worker number adjustment
Warning: non-concurrent operation
Block until one worker is available
Stopping
Request stopping wokers
Non-blocking check of the work queue's running status
Block until the queue is totally stopped or deadline (in micro seconds) is reached
Block until the queue is totally stopped (no more running worker)
Enqueueing
Enqueue one action in the work queue (non-blocking)
Throws WorkQueueStoppedException if the work queue is stopped
Enqueue one action in the work queue (non-blocking)
Throws WorkQueueStoppedException if the work queue is stopped
Enqueue action and some actions to be run after it
Throws WorkQueueStoppedException if the work queue is stopped
Enqueue action and some actions to be run after it
Throws WorkQueueStoppedException if the work queue is stopped
Instances3Eq, Show, Exception
Eq WorkQueueStoppedExceptionDefined in poolboy-0.5.0.1 · Data.PoolboyShow WorkQueueStoppedExceptionDefined in poolboy-0.5.0.1 · Data.PoolboyException WorkQueueStoppedExceptionDefined in poolboy-0.5.0.1 · Data.Poolboy