A clojure facade to build netty bootstraps. In netty, bootstraps are helpers to get channels.
A clojure facade to build netty bootstraps. In netty, bootstraps are helpers to get channels.
(bind! bs host port)
Bind bootstrap to a host and port
Bind bootstrap to a host and port
(bootstrap config)
Build a client bootstrap from a configuration map
Build a client bootstrap from a configuration map
(connect! bs)
(connect! bs sa)
(connect! bs x y)
Attempt connection of a bootstrap. Accepts as pre-configured bootstrap, and optionally a SocketAddressor Host and Port.
Attempt connection of a bootstrap. Accepts as pre-configured bootstrap, and optionally a SocketAddressor Host and Port.
(local-address! bs x)
(local-address! bs x y)
Sets the bootstrap's local address. Accepts either a SocketAddress or Host and Port.
Sets the bootstrap's local address. Accepts either a SocketAddress or Host and Port.
(nio-event-loop-group)
(nio-event-loop-group nb-threads)
Yield a new NioEventLoopGroup
Yield a new NioEventLoopGroup
(remote-address! bs sa)
(remote-address! bs host port)
Set remote address for a client bootstrap, allows host and port to be provided as a SocketAddress
Set remote address for a client bootstrap, allows host and port to be provided as a SocketAddress
(server-bootstrap config)
Build a server bootstrap from a configuration map
Build a server bootstrap from a configuration map
(set-child-handler! bootstrap handler)
A server bootstrap has a child handler, this methods helps set it
A server bootstrap has a child handler, this methods helps set it
(set-group! bs group)
Set the group on top of which channels will be created and then handled.
Set the group on top of which channels will be created and then handled.
(shutdown-fn chan config)
Closure to shutdown a channel and associated group
Closure to shutdown a channel and associated group
(shutdown-gracefully! group)
Gracefully shut down a group
Gracefully shut down a group
(validate! bs)
Validate that a bootstrap has correct parameters.
Validate that a bootstrap has correct parameters.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close