/gist:3c0a917e0ab665c75d26 Secret
Created
March 4, 2013 01:30
Star
You must be signed in to star a gist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ann get-streams-map [(IPersistentMap String String) | |
(IPersistentMap String int) -> | |
(Map | |
String | |
(List | |
(List Message)))]) | |
(defn get-streams-map [conf topics] | |
(-> conf make-props ConsumerConfig. | |
Consumer/createJavaConsumerConnector | |
not-nil | |
(.createMessageStreams topics))) | |
; .createMessageStreams comes from here: http://people.apache.org/~joestein/kafka-0.7.1-incubating-docs/kafka/javaapi/consumer/ConsumerConnector.html |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment