(create-message-handler f)
Turns function f into a Java object which implements MessageHandler.
Turns function f into a Java object which implements MessageHandler.
(create-publish-api servers config)
Creates a com.sproutsocial.nsq.Publisher object.
Creates a com.sproutsocial.nsq.Publisher object.
(create-subscribe-api lookup-server config)
Creates a com.sproutsocial.nsq.Subscriber object.
Creates a com.sproutsocial.nsq.Subscriber object.
(http-publish url topic message)
Publishes on the NSQ bus over HTTP.
url
URL of nsqdtopic
NSQ topic to post tomessage
Clojure hash representation of message to post
Returns the HTTP response.Publishes on the NSQ bus over HTTP. * `url` URL of nsqd * `topic` NSQ topic to post to * `message` Clojure hash representation of message to post Returns the HTTP response.
(publish api topic message)
Asynchronously serializes and publishes message on topic through api. Returns the operation wrapped in a future.
Asynchronously serializes and publishes message on topic through api. Returns the operation wrapped in a future.
(subscribe api topic channel f)
Idempotently subscribes f to topic on channel through api. f must take two string arguments: topic and message.
Idempotently subscribes f to topic on channel through api. f must take two string arguments: topic and message.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close