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 groupName,
Boolean transactional,
InstrumentationManager instrumentationManager,
org.springframework.cloud.stream.binder.ExtendedProducerProperties<RocketMQProducerProperties> producerProperties,
org.springframework.cloud.stream.binding.MessageConverterConfigurer.PartitioningInterceptor partitioningInterceptor) |
| 限定符和类型 | 方法和说明 |
|---|---|
RocketMQHeaderMapper |
getHeaderMapper() |
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 |
setHeaderMapper(RocketMQHeaderMapper headerMapper) |
void |
setSendFailureChannel(org.springframework.messaging.MessageChannel sendFailureChannel)
Set the failure channel.
|
void |
setSync(boolean sync) |
void |
start() |
void |
stop() |
handleMessage, onComplete, onError, onNext, onSubscribebuildSendTimer, configureMetrics, destroy, getActiveCount, getActiveCountLong, getComponentType, getDuration, getErrorCount, getErrorCountLong, getHandleCount, getHandleCountLong, getHandlerMetrics, getIntegrationPatternType, getManagedName, getManagedType, getMaxDuration, getMeanDuration, getMetricsCaptor, getMinDuration, getOrder, getOverrides, getStandardDeviationDuration, isCountsEnabled, isLoggingEnabled, isStatsEnabled, onInit, registerMetricsCaptor, reset, sendTimer, setCountsEnabled, setLoggingEnabled, setManagedName, setManagedType, setOrder, setShouldTrack, setStatsEnabled, shouldTrackafterPropertiesSet, extractTypeIfPossible, generateId, getApplicationContext, getApplicationContextId, getBeanDescription, 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,
org.springframework.cloud.stream.binder.ExtendedProducerProperties<RocketMQProducerProperties> producerProperties,
org.springframework.cloud.stream.binding.MessageConverterConfigurer.PartitioningInterceptor partitioningInterceptor)
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)
handleMessageInternal 在类中 org.springframework.integration.handler.AbstractMessageHandlerpublic 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)
public RocketMQHeaderMapper getHeaderMapper()
public void setHeaderMapper(RocketMQHeaderMapper headerMapper)
Copyright © 2020 Pivotal Software, Inc.. All rights reserved.