public class ConsumerConfigrator extends Object
| Constructor and Description |
|---|
ConsumerConfigrator() |
| Modifier and Type | Method and Description |
|---|---|
static kafka.serializer.Decoder |
configKeyDecoder(Properties props) |
static Map<String,List<IEventListener>> |
configTopicListenersMap(Properties props) |
static Map<String,Integer> |
configTopicStreamsMap(Properties props) |
static kafka.serializer.Decoder |
configValueDecoder(Properties props) |
static void |
validate(Properties props)
mandatory properties are:
group.id
zookeeper.connect
key.decoder
value.decoder
topics (a comma-separated String list)
|
public static void validate(Properties props) throws org.apache.commons.configuration.ConfigurationException
mandatory properties are:
props - incoming properitesorg.apache.commons.configuration.ConfigurationExceptionpublic static kafka.serializer.Decoder configKeyDecoder(Properties props)
public static kafka.serializer.Decoder configValueDecoder(Properties props)
public static Map<String,Integer> configTopicStreamsMap(Properties props) throws Exception
Exceptionpublic static Map<String,List<IEventListener>> configTopicListenersMap(Properties props) throws Exception
ExceptionCopyright © 2016 CodeGerm. All rights reserved.