Handles socket connection lifecycle.
Pool is implemented with Apache Commons pool.
Originally adapted from redis-clojure.
Handles socket connection lifecycle. Pool is implemented with Apache Commons pool. Originally adapted from `redis-clojure`.
(default-ssl-fn {:keys [socket host port]})Takes an unencrypted underlying java.net.Socket and returns an encrypted java.net.Socket using the environment's default SSLSocketFactory.
Takes an unencrypted underlying java.net.Socket and returns an encrypted java.net.Socket using the environment's default SSLSocketFactory.
(-conn-error this)(close-conn this)(conn-alive? this)(get-conn this spec)(release-conn this conn)(release-conn this conn exception)(make-connection-factory)(make-new-connection {:keys [host port username password db conn-setup-fn
conn-timeout-ms read-timeout-ms timeout-ms ssl-fn]
:as spec})(pooled-conn {:as conn-opts pool-opts :pool spec-opts :spec})Returns [<open-pool> <pooled-connection>]
Returns [<open-pool> <pooled-connection>]
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |