(close-connection {:async-connect.client/keys [channel read-ch write-ch]
:as connection})
(close this)
(close this force?)
Close this connection. In simple implementation, a netty connection held by this connection will be closed.
If this connection uses a kind of connection pools, calling close
will not close a read connection, but
return the connection to a pool.
if force?
is true, the connection must be really closed instead of returning it into a pool.
Close this connection. In simple implementation, a netty connection held by this connection will be closed. If this connection uses a kind of connection pools, calling `close` will not close a read connection, but return the connection to a pool. if `force?` is true, the connection must be really closed instead of returning it into a pool.
(create-connection this host port read-ch write-ch)
Connect to a port
of a host
using bootstrap
, and return a IConnection object.
If read-ch and write-ch are supplied, all data written and read are transfered to the supplied channels,
If read-ch and write-ch aren't supplied, channels made by (chan)
are used.
Connect to a `port` of a `host` using `bootstrap`, and return a IConnection object. If read-ch and write-ch are supplied, all data written and read are transfered to the supplied channels, If read-ch and write-ch aren't supplied, channels made by `(chan)` are used.
(make-bootstrap)
(make-bootstrap {:keys [:async-connect.client/bootstrap-initializer
:async-connect.client/channel-initializer]
:as config})
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close