Liking cljdoc? Tell your friends :D

puppetlabs.puppetdb.threadpool


active-countclj

(active-count pool)
source

dochanclj

(dochan pool on-input in-chan blocked?)

Calls on-input on each item found on in-chan, using the gated thread pool.

Calls on-input on each item found on in-chan, using the gated thread
pool.
sourceraw docstring

executorclj

(executor core-size max-size name-pattern)
source

gated-executeclj

(gated-execute {:keys [semaphore threadpool]} f)

Executes f on gated-threadpool. Will throw RejectedExecutionException if gated-threadpool is being shutdown.

Executes `f` on `gated-threadpool`. Will throw
RejectedExecutionException if `gated-threadpool` is being shutdown.
sourceraw docstring

gated-threadpoolclj

(gated-threadpool size name-pattern shutdown-timeout-ms)

Creates an unbounded threadpool with the intent that access to the threadpool is bounded by the semaphore. Implicitly the threadpool is bounded by size, but since the semaphore is handling that aspect, it's more efficient to use an unbounded pool and not duplicate the constraint in both the semaphore and the threadpool

Creates an unbounded threadpool with the intent that access to the
threadpool is bounded by the semaphore. Implicitly the threadpool is
bounded by `size`, but since the semaphore is handling that aspect,
it's more efficient to use an unbounded pool and not duplicate the
constraint in both the semaphore and the threadpool
sourceraw docstring

logging-exception-handlerclj

Exception handler that ensures any uncaught exception that occurs on this thread is logged

Exception handler that ensures any uncaught exception that occurs
on this thread is logged
sourceraw docstring

shutdownclj

(shutdown {:keys [threadpool shutdown-timeout]})

Shuts down the threadpool, ensuring in-flight work is complete before tearing it down. Waits up to shutdown-timeout (in milliseconds) for that work to complete before forcibly shutting down the threadpool

Shuts down the threadpool, ensuring in-flight work is
complete before tearing it down. Waits up to `shutdown-timeout` (in
milliseconds) for that work to complete before forcibly shutting
down the threadpool
sourceraw docstring

shutdown-gatedclj

(shutdown-gated {:keys [semaphore] :as pool})

Shuts down the gated threadpool via shutdown-pool after draining all the permits.

Shuts down the gated threadpool via shutdown-pool after draining all
the permits.
sourceraw docstring

shutdown-unboundedclj

(shutdown-unbounded pool)
source

thread-factoryclj

(thread-factory threadpool-name-pattern pool-thread-factory)

Creates a command thread factory, wrapping the pool-thread-factory. Using this thread factory ensures that we have distinguishable names for threads in this pool and that all uncaught exceptions are logged as errors. Without this uncaught exceptions get the default which is standard error

Creates a command thread factory, wrapping the
`pool-thread-factory`. Using this thread factory ensures that we
have distinguishable names for threads in this pool and that all
uncaught exceptions are logged as errors. Without this uncaught
exceptions get the default which is standard error
sourceraw docstring

unbounded-threadpoolclj

(unbounded-threadpool name-pattern shutdown-timeout-ms)

Creates an unbounded thread pool with PuppetDB specific adjustments, i.e. exception logging, etc.

Creates an unbounded thread pool with PuppetDB specific adjustments,
i.e. exception logging, etc.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close