public class RocketMQMessageHandler
extends org.springframework.integration.handler.AbstractMessageHandler
implements org.springframework.context.Lifecycle
EXPRESSION_PARSER, logger| Constructor and Description |
|---|
RocketMQMessageHandler(org.apache.rocketmq.spring.core.RocketMQTemplate rocketMQTemplate,
String destination,
String groupName,
Boolean transactional,
InstrumentationManager instrumentationManager) |
| Modifier and Type | Method and Description |
|---|---|
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, destroy, getActiveCount, getActiveCountLong, getComponentType, getDuration, getErrorCount, getErrorCountLong, getHandleCount, getHandleCountLong, getManagedName, getManagedType, getMaxDuration, getMeanDuration, getMinDuration, getOrder, getOverrides, getStandardDeviationDuration, handleMessage, isCountsEnabled, isLoggingEnabled, isStatsEnabled, onComplete, onError, onInit, onNext, onSubscribe, registerMetricsCaptor, reset, setCountsEnabled, setLoggingEnabled, setManagedName, setManagedType, setOrder, setShouldTrack, setStatsEnabledafterPropertiesSet, extractTypeIfPossible, generateId, getApplicationContext, getApplicationContextId, getBeanFactory, getBeanName, getChannelResolver, getComponentName, getConversionService, getExpression, getIntegrationProperties, getIntegrationProperty, getMessageBuilderFactory, getTaskScheduler, isInitialized, setApplicationContext, setBeanFactory, setBeanName, setChannelResolver, setComponentName, setConversionService, setMessageBuilderFactory, setPrimaryExpression, setTaskScheduler, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic RocketMQMessageHandler(org.apache.rocketmq.spring.core.RocketMQTemplate rocketMQTemplate,
String destination,
String groupName,
Boolean transactional,
InstrumentationManager instrumentationManager)
public 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.Lifecycleprotected void handleMessageInternal(org.springframework.messaging.Message<?> message)
throws Exception
handleMessageInternal in class 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.