(add-shutdown-hook f)
Adds a shutdown hook. f is a no arg function.
Adds a shutdown hook. f is a no arg function.
(build-properties group-id artifact-id)
Returns the build properties created by lein.
Returns the build properties created by lein.
(build-version group-id artifact-id)
Answers with the current version from pom.properties
Answers with the current version from pom.properties
(bytes->base64-str bb)
Takes an array of bytes and returns the base64 encoded string
Takes an array of bytes and returns the base64 encoded string
(current-process-id)
Returns a string or throws an exception Not safe to use according to javadoc
Returns a string or throws an exception Not safe to use according to javadoc
(hostname)
Answers with the host name for the current machine.
Answers with the host name for the current machine.
(log-file-with-suffix log-file suffix)
log-file is a string that ends in .log. Adds the suffix before the .log if there is a suffix.
log-file is a string that ends in .log. Adds the suffix before the .log if there is a suffix.
(normalize-env env)
env is a string and returns a nilable keyword.
env is a string and returns a nilable keyword.
(periodically thread-name period f)
Starts a new user thread and every period ms calls f. f is a no arg function. Returns the thread that is started. Call Thread/interupt to have the thread terminated when it is sleeping. f may wish to check Thread/interrupted and throw an InterruptedException when heavy processing is anticipated.
Starts a new user thread and every period ms calls f. f is a no arg function. Returns the thread that is started. Call Thread/interupt to have the thread terminated when it is sleeping. f may wish to check Thread/interrupted and throw an InterruptedException when heavy processing is anticipated.
(secure-random-hex n)
generates a secure random hex string of size 2n
generates a secure random hex string of size 2n
(set-utc-tz)
Run the app in UTC timezone. Do this early in app startup to properly deal with timezones and jdbc.
Run the app in UTC timezone. Do this early in app startup to properly deal with timezones and jdbc.
(url->host url)
Takes a url string and answers with the host.
Takes a url string and answers with the host.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close