Liking cljdoc? Tell your friends :D

biiwide.deepend.alpha.pool


->fixed_controller2060clj

(->fixed_controller2060 max-objects-per-key max-objects)

Positional factory function for class biiwide.deepend.alpha.pool.fixed_controller2060.

Positional factory function for class biiwide.deepend.alpha.pool.fixed_controller2060.
sourceraw docstring

->utilization_controller2021clj

(->utilization_controller2021 target-utilization
                              max-objects-per-key
                              max-objects)

Positional factory function for class biiwide.deepend.alpha.pool.utilization_controller2021.

Positional factory function for class biiwide.deepend.alpha.pool.utilization_controller2021.
sourceraw docstring

acquire!clj

(acquire! pool key)

Acquire an object from a pool for a key.

Acquire an object from a pool for a key.
sourceraw docstring

acquire-callbackcljmacro

(acquire-callback single-binding & body)
source

async-acquire!clj

(async-acquire! pool key callback)

Asynchronously acquire and use an object from a pool for a key

Asynchronously acquire and use an object from
a pool for a key
sourceraw docstring

callback*clj

(callback* callback-fn)
source

callback?clj

(callback? x)
source

checked-pool?clj

(checked-pool? x)
source

CheckedPoolcljprotocol

source

controllerclj

(controller increment? adjust)
source

controller?clj

(controller? x)
source

DEFAULT_CONTROL_PERIODclj

source

DEFAULT_MAX_QUEUE_LENGTHclj

source

DEFAULT_SAMPLE_PERIODclj

source

DEFAULT_TIME_UNITclj

source

defcontrollercljmacro

(defcontroller name fields & body)

Define Controller class: (defcontroller name [fields] (increment? [key key-objects total-objects] ...) (adjustment [stats-map] ...))

Define Controller class:
(defcontroller name
  [fields]
  (increment? [key key-objects total-objects]
    ...)
  (adjustment [stats-map]
    ...))
sourceraw docstring

defgeneratorcljmacro

(defgenerator name fields & body)

Define a Generator class: (defgenerator name [fields] (generate [key] ...) (destroy [key obj] ...))

Define a Generator class:
(defgenerator name
  [fields]
  (generate [key]
    ...)
  (destroy [key obj]
    ...))
sourceraw docstring

dispose!clj

(dispose! pool key obj)

Dispose of an object for a key from a pool. Returns the pool.

Dispose of an object for a key from a pool.
Returns the pool.
sourceraw docstring

fixed-controllerclj

(fixed-controller max-objects-per-key max-objects)
source

generatorclj

(generator generate destroy)
source

generator?clj

(generator? x)
source

map->fixed_controller2060clj

(map->fixed_controller2060 m__7585__auto__)

Factory function for class biiwide.deepend.alpha.pool.fixed_controller2060, taking a map of keywords to field values.

Factory function for class biiwide.deepend.alpha.pool.fixed_controller2060, taking a map of keywords to field values.
sourceraw docstring

map->utilization_controller2021clj

(map->utilization_controller2021 m__7585__auto__)

Factory function for class biiwide.deepend.alpha.pool.utilization_controller2021, taking a map of keywords to field values.

Factory function for class biiwide.deepend.alpha.pool.utilization_controller2021, taking a map of keywords to field values.
sourceraw docstring

poolclj

(pool pool-options)
source

pool?clj

(pool? x)
source

release!clj

(release! pool key obj)

Release an object for a key back to a pool. Returns the pool.

Release an object for a key back to a pool.
Returns the pool.
sourceraw docstring

shutdown!clj

(shutdown! pool)

Shutdown a pool.

Shutdown a pool.
sourceraw docstring

shutdown?clj

(shutdown? pool)
source

simple-checked-poolclj

(simple-checked-pool
  delegate-pool
  healthy?
  {:keys [check-on-acquire check-on-release max-acquire-attempts]
   :or {check-on-acquire true check-on-release true max-acquire-attempts 4}})
source

StatefulPoolcljprotocol

-shutdown?clj

(-shutdown? pool)

Internal predicate

Internal predicate
source

utilization-controllerclj

(utilization-controller target-utilization max-objects-per-key max-objects)
source

with-poolcljmacro

(with-pool binding & body)

Construct and use a pool within a scope. Shuts down the pool when finished.

Construct and use a pool within a scope.
Shuts down the pool when finished.
sourceraw docstring

with-resourcecljmacro

(with-resource binding & body)

Acquire, Bind, & Release a pooled object within a scope. (with-resource [obj pool key] ...)

Acquire, Bind, & Release a pooled object
  within a scope.
(with-resource [obj pool key]
  ...)
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close