public class RocketMQMessageHandler
extends org.springframework.integration.handler.AbstractMessageHandler
implements org.springframework.context.Lifecycle
| 构造器和说明 |
|---|
RocketMQMessageHandler(org.apache.rocketmq.spring.core.RocketMQTemplate rocketMQTemplate,
String destination,
String group,
Boolean transactional,
InstrumentationManager instrumentationManager) |
| 限定符和类型 | 方法和说明 |
|---|---|
org.springframework.messaging.MessageChannel |
getSendFailureChannel() |
protected void |
handleMessageInternal(org.springframework.messaging.Message<?> message) |
boolean |
isRunning() |
void |
setErrorMessageStrategy(org.springframework.integration.support.ErrorMessageStrategy errorMessageStrategy)
Set the error message strategy implementation to use when sending error messages
after send failures.
|
void |
setSendFailureChannel(org.springframework.messaging.MessageChannel sendFailureChannel)
Set the failure channel.
|
void |
setSync(boolean sync) |
void |
start() |
void |
stop() |
configureMetrics, getActiveCount, getActiveCountLong, getComponentType, getDuration, getErrorCount, getErrorCountLong, getHandleCount, getHandleCountLong, getManagedName, getManagedType, getMaxDuration, getMeanDuration, getMinDuration, getOrder, getStandardDeviationDuration, handleMessage, isCountsEnabled, isLoggingEnabled, isStatsEnabled, onInit, reset, setCountsEnabled, setLoggingEnabled, setManagedName, setManagedType, setOrder, setShouldTrack, setStatsEnabledafterPropertiesSet, extractTypeIfPossible, getApplicationContext, getApplicationContextId, getBeanFactory, getChannelResolver, getComponentName, getConversionService, getExpression, getIntegrationProperties, getIntegrationProperty, getMessageBuilderFactory, getTaskScheduler, setApplicationContext, setBeanFactory, setBeanName, setChannelResolver, setComponentName, setConversionService, setMessageBuilderFactory, setPrimaryExpression, setTaskScheduler, toStringpublic RocketMQMessageHandler(org.apache.rocketmq.spring.core.RocketMQTemplate rocketMQTemplate,
String destination,
String group,
Boolean transactional,
InstrumentationManager instrumentationManager)
public void start()
start 在接口中 org.springframework.context.Lifecyclepublic void stop()
stop 在接口中 org.springframework.context.Lifecyclepublic boolean isRunning()
isRunning 在接口中 org.springframework.context.Lifecycleprotected void handleMessageInternal(org.springframework.messaging.Message<?> message)
throws Exception
handleMessageInternal 在类中 org.springframework.integration.handler.AbstractMessageHandlerExceptionpublic void setSendFailureChannel(org.springframework.messaging.MessageChannel sendFailureChannel)
ErrorMessage will be sent
to this channel with a payload of a MessagingException with the failed
message and cause.sendFailureChannel - the failure channel.public void setErrorMessageStrategy(org.springframework.integration.support.ErrorMessageStrategy errorMessageStrategy)
errorMessageStrategy - the implementation.public org.springframework.messaging.MessageChannel getSendFailureChannel()
public void setSync(boolean sync)
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.