Skip to content

Instantly share code, notes, and snippets.

@michaelklishin
Created January 2, 2012 13:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save michaelklishin/3fd54c45bce5cdf9e345 to your computer and use it in GitHub Desktop.
Save michaelklishin/3fd54c45bce5cdf9e345 to your computer and use it in GitHub Desktop.
(gen-class :name some.package.PublishingSchedulerListener
:implements [org.quartz.SchedulerListener]
:constructors {[com.rabbitmq.client.Channel String String] []}
:init init
:state state)
(defn -init
[^Channel ch ^String exchange ^String routing-key]
[[] (ref { :channel ch :exchange exchange :routing-key routing-key })])
(defn -schedulerStarted
[this]
(println this (.state this)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment