public class RocketMQListenerBindingContainer extends Object implements org.springframework.beans.factory.InitializingBean, org.apache.rocketmq.spring.support.RocketMQListenerContainer, org.springframework.context.SmartLifecycle
| Modifier and Type | Class and Description |
|---|---|
class |
RocketMQListenerBindingContainer.DefaultMessageListenerConcurrently |
class |
RocketMQListenerBindingContainer.DefaultMessageListenerOrderly |
| Constructor and Description |
|---|
RocketMQListenerBindingContainer(org.springframework.cloud.stream.binder.ExtendedConsumerProperties<RocketMQConsumerProperties> rocketMQConsumerProperties,
RocketMQBinderConfigurationProperties rocketBinderConfigurationProperties,
RocketMQMessageChannelBinder rocketMQMessageChannelBinder) |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
void |
destroy() |
String |
getCharset() |
org.apache.rocketmq.spring.annotation.ConsumeMode |
getConsumeMode() |
org.apache.rocketmq.client.consumer.DefaultMQPushConsumer |
getConsumer() |
String |
getConsumerGroup() |
int |
getConsumeThreadMax() |
int |
getDelayLevelWhenNextConsume() |
org.apache.rocketmq.spring.annotation.MessageModel |
getMessageModel() |
String |
getNameServer() |
int |
getPhase() |
org.springframework.cloud.stream.binder.ExtendedConsumerProperties<RocketMQConsumerProperties> |
getRocketMQConsumerProperties() |
org.apache.rocketmq.spring.core.RocketMQListener |
getRocketMQListener() |
String |
getSelectorExpression() |
org.apache.rocketmq.spring.annotation.SelectorType |
getSelectorType() |
long |
getSuspendCurrentQueueTimeMillis() |
String |
getTopic() |
boolean |
isAutoStartup() |
boolean |
isRunning() |
void |
setCharset(String charset) |
void |
setConsumer(org.apache.rocketmq.client.consumer.DefaultMQPushConsumer consumer) |
void |
setConsumerGroup(String consumerGroup) |
void |
setConsumeThreadMax(int consumeThreadMax) |
void |
setDelayLevelWhenNextConsume(int delayLevelWhenNextConsume) |
void |
setNameServer(String nameServer) |
void |
setRocketMQListener(org.apache.rocketmq.spring.core.RocketMQListener rocketMQListener) |
void |
setSuspendCurrentQueueTimeMillis(long suspendCurrentQueueTimeMillis) |
void |
setTopic(String topic) |
void |
setupMessageListener(org.apache.rocketmq.spring.core.RocketMQListener<?> rocketMQListener) |
void |
start() |
void |
stop() |
void |
stop(Runnable callback) |
String |
toString() |
public RocketMQListenerBindingContainer(org.springframework.cloud.stream.binder.ExtendedConsumerProperties<RocketMQConsumerProperties> rocketMQConsumerProperties, RocketMQBinderConfigurationProperties rocketBinderConfigurationProperties, RocketMQMessageChannelBinder rocketMQMessageChannelBinder)
public void setupMessageListener(org.apache.rocketmq.spring.core.RocketMQListener<?> rocketMQListener)
setupMessageListener in interface org.apache.rocketmq.spring.support.RocketMQListenerContainerpublic void destroy()
throws Exception
destroy in interface org.springframework.beans.factory.DisposableBeanExceptionpublic void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanExceptionpublic boolean isAutoStartup()
isAutoStartup in interface org.springframework.context.SmartLifecyclepublic void stop(Runnable callback)
stop in interface org.springframework.context.SmartLifecyclepublic void start()
start in interface org.springframework.context.Lifecyclepublic void stop()
stop in interface org.springframework.context.Lifecyclepublic boolean isRunning()
isRunning in interface org.springframework.context.Lifecyclepublic int getPhase()
getPhase in interface org.springframework.context.PhasedgetPhase in interface org.springframework.context.SmartLifecyclepublic long getSuspendCurrentQueueTimeMillis()
public void setSuspendCurrentQueueTimeMillis(long suspendCurrentQueueTimeMillis)
public int getDelayLevelWhenNextConsume()
public void setDelayLevelWhenNextConsume(int delayLevelWhenNextConsume)
public String getNameServer()
public void setNameServer(String nameServer)
public String getConsumerGroup()
public void setConsumerGroup(String consumerGroup)
public String getTopic()
public void setTopic(String topic)
public int getConsumeThreadMax()
public void setConsumeThreadMax(int consumeThreadMax)
public String getCharset()
public void setCharset(String charset)
public org.apache.rocketmq.spring.core.RocketMQListener getRocketMQListener()
public void setRocketMQListener(org.apache.rocketmq.spring.core.RocketMQListener rocketMQListener)
public org.apache.rocketmq.client.consumer.DefaultMQPushConsumer getConsumer()
public void setConsumer(org.apache.rocketmq.client.consumer.DefaultMQPushConsumer consumer)
public org.springframework.cloud.stream.binder.ExtendedConsumerProperties<RocketMQConsumerProperties> getRocketMQConsumerProperties()
public org.apache.rocketmq.spring.annotation.ConsumeMode getConsumeMode()
public org.apache.rocketmq.spring.annotation.SelectorType getSelectorType()
public String getSelectorExpression()
public org.apache.rocketmq.spring.annotation.MessageModel getMessageModel()
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.