
public class ONSConsumerAbstract extends ONSClientAbstract
| Modifier and Type | Field and Description |
|---|---|
protected com.alibaba.rocketmq.client.consumer.DefaultMQPushConsumer |
defaultMQPushConsumer |
nameServerAddr, namespaceId, properties, sessionCredentials, started, traceDispatcher, WSADDR_INTERNAL, WSADDR_INTERNAL_TIMEOUTMILLS, WSADDR_INTERNET, WSADDR_INTERNET_TIMEOUTMILLS| Constructor and Description |
|---|
ONSConsumerAbstract(Properties properties) |
| Modifier and Type | Method and Description |
|---|---|
void |
shutdown() |
void |
start() |
protected void |
subscribe(String topic,
MessageSelector selector) |
protected void |
subscribe(String topic,
String subExpression) |
protected void |
unsubscribe(String topic) |
protected void |
updateNameServerAddr(String newAddrs) |
buildIntanceName, checkONSProducerServiceState, getNameServerAddr, getNamespace, isClosed, isStarted, updateCredentialprotected final com.alibaba.rocketmq.client.consumer.DefaultMQPushConsumer defaultMQPushConsumer
public ONSConsumerAbstract(Properties properties)
protected void updateNameServerAddr(String newAddrs)
updateNameServerAddr in class ONSClientAbstractprotected void subscribe(String topic, MessageSelector selector)
protected void unsubscribe(String topic)
public void start()
start in interface Adminstart in class ONSClientAbstractpublic void shutdown()
shutdown in interface Adminshutdown in class ONSClientAbstractCopyright © 2012–2021. All rights reserved.