Class BatchConsumerImpl
- java.lang.Object
-
- com.aliyun.openservices.ons.client.ClientAbstract
-
- com.aliyun.openservices.ons.client.rocketmq.PushConsumer
-
- com.aliyun.openservices.ons.client.rocketmq.impl.BatchConsumerImpl
-
- All Implemented Interfaces:
Admin
,BatchConsumer
public class BatchConsumerImpl extends PushConsumer implements BatchConsumer
-
-
Field Summary
-
Fields inherited from class com.aliyun.openservices.ons.client.rocketmq.PushConsumer
defaultMQPushConsumer
-
Fields inherited from class com.aliyun.openservices.ons.client.ClientAbstract
messageTracingEnabled, nameServerAddr, namespace, provider, started
-
-
Constructor Summary
Constructors Constructor Description BatchConsumerImpl(Properties properties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
start()
void
subscribe(String topic, String subExpression, BatchMessageListener listener)
void
unsubscribe(String topic)
-
Methods inherited from class com.aliyun.openservices.ons.client.rocketmq.PushConsumer
setOffsetStore, shutdown, subscribe
-
Methods inherited from class com.aliyun.openservices.ons.client.ClientAbstract
isClosed, isStarted, updateCredential
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.aliyun.openservices.ons.api.Admin
isClosed, isStarted, shutdown, updateCredential
-
-
-
-
Constructor Detail
-
BatchConsumerImpl
public BatchConsumerImpl(Properties properties)
-
-
Method Detail
-
start
public void start()
- Specified by:
start
in interfaceAdmin
- Overrides:
start
in classPushConsumer
-
subscribe
public void subscribe(String topic, String subExpression, BatchMessageListener listener)
- Specified by:
subscribe
in interfaceBatchConsumer
-
unsubscribe
public void unsubscribe(String topic)
- Specified by:
unsubscribe
in interfaceBatchConsumer
- Overrides:
unsubscribe
in classPushConsumer
-
-