Class PushConsumerImpl
- java.lang.Object
-
- com.aliyun.openservices.ons.client.ClientAbstract
-
- com.aliyun.openservices.ons.client.rocketmq.PushConsumer
-
- com.aliyun.openservices.ons.client.rocketmq.impl.PushConsumerImpl
-
public class PushConsumerImpl extends PushConsumer implements Consumer
-
-
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 PushConsumerImpl(Properties properties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
rateLimit(String topic, double permitsPerSecond)
void
start()
void
subscribe(String topic, MessageSelector selector, MessageListener listener)
void
subscribe(String topic, String subExpression, MessageListener 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
-
Methods inherited from interface com.aliyun.openservices.ons.api.Consumer
setOffsetStore
-
-
-
-
Constructor Detail
-
PushConsumerImpl
public PushConsumerImpl(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, MessageListener listener)
-
subscribe
public void subscribe(String topic, MessageSelector selector, MessageListener listener)
-
rateLimit
public void rateLimit(String topic, double permitsPerSecond)
-
unsubscribe
public void unsubscribe(String topic)
- Specified by:
unsubscribe
in interfaceConsumer
- Overrides:
unsubscribe
in classPushConsumer
-
-