Class RabbitStreamMessageHandlerSpec
java.lang.Object
org.springframework.integration.dsl.IntegrationComponentSpec<S,H>
 
org.springframework.integration.dsl.MessageHandlerSpec<RabbitStreamMessageHandlerSpec,RabbitStreamMessageHandler>
 
org.springframework.integration.amqp.dsl.RabbitStreamMessageHandlerSpec
- All Implemented Interfaces:
- DisposableBean,- FactoryBean<RabbitStreamMessageHandler>,- InitializingBean,- Lifecycle,- Phased,- SmartLifecycle
public class RabbitStreamMessageHandlerSpec
extends MessageHandlerSpec<RabbitStreamMessageHandlerSpec,RabbitStreamMessageHandler> 
The base 
MessageHandlerSpec for RabbitStreamMessageHandlers.- Since:
- 6.0
- Author:
- Gary Russell
- 
Field SummaryFields inherited from class org.springframework.integration.dsl.IntegrationComponentSpeclogger, PARSER, targetFields inherited from interface org.springframework.beans.factory.FactoryBeanOBJECT_TYPE_ATTRIBUTEFields inherited from interface org.springframework.context.SmartLifecycleDEFAULT_PHASE
- 
Method SummaryModifier and TypeMethodDescriptionconfirmTimeout(long timeout) Set a timeout for the confirm result.headerMapper(AmqpHeaderMapper headerMapper) Set a customAmqpHeaderMapperfor mapping request and reply headers.headersMappedLast(boolean headersLast) Determine whether the headers are mapped before the message is converted, or afterwards.mappedRequestHeaders(String... headers) Provide the header names that should be mapped from a request to aMessageHeaders.sendFailureChannel(String channel) Set the failure channel.sendFailureChannel(MessageChannel channel) Set the failure channel.sendSuccessChannel(String channel) Set the success channel.sendSuccessChannel(MessageChannel channel) Set the success channel.sync(boolean sync) Set to true to wait for a confirmation.Methods inherited from class org.springframework.integration.dsl.IntegrationComponentSpec_this, afterPropertiesSet, destroy, doGet, getId, getObject, getObjectType, getPhase, id, isAutoStartup, isRunning, start, stop, stopMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.beans.factory.FactoryBeanisSingleton
- 
Method Details- 
headerMapperSet a customAmqpHeaderMapperfor mapping request and reply headers.- Parameters:
- headerMapper- the- AmqpHeaderMapperto use.
- Returns:
- this spec.
 
- 
mappedRequestHeadersProvide the header names that should be mapped from a request to aMessageHeaders.- Parameters:
- headers- The request header names.
- Returns:
- this spec.
 
- 
headersMappedLastDetermine whether the headers are mapped before the message is converted, or afterwards.- Parameters:
- headersLast- true to map headers last.
- Returns:
- this spec.
- See Also:
 
- 
sendSuccessChannelSet the success channel.- Parameters:
- channel- the channel.
- Returns:
- this spec.
 
- 
sendFailureChannelSet the failure channel. After a send failure, anErrorMessagewill be sent to this channel with a payload of the exception with the failed message.- Parameters:
- channel- the channel.
- Returns:
- this spec.
 
- 
sendSuccessChannelSet the success channel.- Parameters:
- channel- the channel.
- Returns:
- this spec.
 
- 
sendFailureChannelSet the failure channel. After a send failure, anErrorMessagewill be sent to this channel with a payload of the exception with the failed message.- Parameters:
- channel- the channel.
- Returns:
- this spec.
 
- 
syncSet to true to wait for a confirmation.- Parameters:
- sync- true to wait.
- Returns:
- this spec.
- See Also:
 
- 
confirmTimeoutSet a timeout for the confirm result.- Parameters:
- timeout- the approximate timeout.
- Returns:
- this spec.
- See Also:
 
 
-