Pool utility functions and data types
Pool utility functions and data types
(assert-timeout! timeout-ms start-ts)
When timeout-ms have passed since start-ts a TimeoutException is thrown
When timeout-ms have passed since start-ts a TimeoutException is thrown
(call-safely f & args)
(close-scheduled-exec-service! exec-service)
Close and shutdown the executor service
Close and shutdown the executor service
(create-pool-obj v)
(now)
(pool-obj-idle-timeout? v timeout-ms)
True if (diff curr-time (.ts v)) > timeout-ms
True if (diff curr-time (.ts v)) > timeout-ms
(pool-obj-ttl-timeout? v timeout-ms)
True if (diff curr-time (.gen-ts v)) > timeout-ms
True if (diff curr-time (.gen-ts v)) > timeout-ms
(schedule exec-service check-freq-ms f)
Scheduled the function f at a fixed rate at check-freq-ms
Scheduled the function f at a fixed rate at check-freq-ms
(scheduled-exec-service n)
Create a single threaded exec service that creates daemon threads with name n
Create a single threaded exec service that creates daemon threads with name n
(timeout? timeout-ms start-ts)
True if the diff between now and start-ts is more than timeout-ms
True if the diff between now and start-ts is more than timeout-ms
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close