public class SymmetricDispatcher<K,V> extends Object implements IConsumer<K,V>
COMMIT_INTERVAL, CONSUMER_LISTENERS, CONSUMER_STREAMS, CONSUMER_THREAD_POOL_SIZE, CONSUMER_TOPICS, DEFAULT_COMMIT_INTERVAL, DEFAULT_CONNECTION_TIMEOUT, DEFAULT_GROUP_ID, DEFAULT_SINGLE_TOPIC, DEFAULT_STREAM_THREADS, DEFAULT_SUB_ZK_CONNECT, DEFAULT_THREAD_POOL_SIZE, DEFAULT_ZKCLIENT_CONNECTION_TIMEOUT, DEFAULT_ZKCLIENT_SERVER, DEFAULT_ZKCLIENT_SESSION_TIMEOUT, GROUP_ID, KEY_DECODER, NO_SUCH_BROKER, NO_SUCH_TOPIC, SINGLE_TOPIC, VALUE_DECODER, ZKCONNECTION_TIMEOUTAUTO_CREATE, DEFAULT_PRO_ZK_CONNECT, ZK_CONNECT| Constructor and Description |
|---|
SymmetricDispatcher(org.apache.commons.configuration.Configuration config) |
SymmetricDispatcher(Properties props) |
SymmetricDispatcher(String configFile) |
| Modifier and Type | Method and Description |
|---|---|
String |
getGroupId()
Just get client ID
|
void |
launch()
launch processor thread N topic, each topic -> M stream -> M thread
|
void |
shutdown()
Shutdown this CONSUMER, set offsets correctly and then shutdown
everything
|
public SymmetricDispatcher(String configFile) throws Exception
Exceptionpublic SymmetricDispatcher(org.apache.commons.configuration.Configuration config)
throws Exception
Exceptionpublic SymmetricDispatcher(Properties props) throws Exception
Exceptionpublic String getGroupId()
public void launch()
public void shutdown()
Copyright © 2016 CodeGerm. All rights reserved.