(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.
(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