Class MessageProducerSpec<S extends MessageProducerSpec<S,P>,P extends MessageProducerSupport>  
java.lang.Object
org.springframework.integration.dsl.IntegrationComponentSpec<S,P>
 
org.springframework.integration.dsl.MessageProducerSpec<S,P> 
- Type Parameters:
- S- the target- MessageProducerSpecimplementation type.
- P- the target- MessageProducerSupportimplementation type.
- All Implemented Interfaces:
- DisposableBean,- FactoryBean<P>,- InitializingBean,- Lifecycle,- Phased,- SmartLifecycle
- Direct Known Subclasses:
- AmqpBaseInboundChannelAdapterSpec,- DebeziumMessageProducerSpec,- ImapIdleChannelAdapterSpec,- JmsMessageDrivenChannelAdapterSpec,- KafkaMessageDrivenChannelAdapterSpec,- MongoDbChangeStreamMessageProducerSpec,- TailAdapterSpec,- TcpInboundChannelAdapterSpec,- UdpInboundChannelAdapterSpec,- ZeroMqMessageProducerSpec
public abstract class MessageProducerSpec<S extends MessageProducerSpec<S,P>,P extends MessageProducerSupport>  
extends IntegrationComponentSpec<S,P> 
An 
IntegrationComponentSpec for
 MessageProducers.- Since:
- 5.0
- Author:
- Artem Bilan
- 
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
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionautoStartup(boolean autoStartup) errorChannel(String errorChannel) Configure the bean name of theMessageChannelto which error messages will be sent.errorChannel(MessageChannel errorChannel) Configure theMessageChannelto which error messages will be sent.errorMessageStrategy(ErrorMessageStrategy errorMessageStrategy) Set anErrorMessageStrategyto use to build an error message when a exception occurs.Configure the component identifier.observationConvention(MessageReceiverObservationConvention observationConvention) Provide a customMessageReceiverObservationConvention.outputChannel(String outputChannel) Specify the bean name of theoutputChannelfor theMessageProducer.outputChannel(MessageChannel outputChannel) Specify theoutputChannelfor theMessageProducer.phase(int phase) sendTimeout(long sendTimeout) Configure the default timeout value to use for send operations.shouldTrack(boolean shouldTrack) Whether component should be tracked or not by message history.Methods inherited from class org.springframework.integration.dsl.IntegrationComponentSpec_this, afterPropertiesSet, destroy, doGet, getId, getObject, getObjectType, getPhase, 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
- 
Constructor Details- 
MessageProducerSpec
 
- 
- 
Method Details- 
idConfigure the component identifier. Used as thebeanNameto register the bean in the application context for this component. Configure the message producer's bean name.- Overrides:
- idin class- IntegrationComponentSpec<S extends MessageProducerSpec<S,- P>, - P extends MessageProducerSupport> 
- Parameters:
- id- the id.
- Returns:
- the spec.
 
- 
phase- Parameters:
- phase- the phase.
- Returns:
- the spec.
- See Also:
 
- 
autoStartup- Parameters:
- autoStartup- the autoStartup.
- Returns:
- the spec.
- See Also:
 
- 
outputChannelSpecify theoutputChannelfor theMessageProducer.- Parameters:
- outputChannel- the outputChannel.
- Returns:
- the spec.
- See Also:
 
- 
outputChannelSpecify the bean name of theoutputChannelfor theMessageProducer.- Parameters:
- outputChannel- the outputChannel bean name.
- Returns:
- the spec.
- See Also:
 
- 
errorChannelConfigure theMessageChannelto which error messages will be sent.- Parameters:
- errorChannel- the errorChannel.
- Returns:
- the spec.
- See Also:
 
- 
errorChannelConfigure the bean name of theMessageChannelto which error messages will be sent.- Parameters:
- errorChannel- the errorChannel bean name.
- Returns:
- the spec.
- See Also:
 
- 
sendTimeoutConfigure the default timeout value to use for send operations. May be overridden for individual messages.- Parameters:
- sendTimeout- the send timeout in milliseconds
- Returns:
- the spec.
- Since:
- 5.0.2
- See Also:
 
- 
shouldTrackWhether component should be tracked or not by message history.- Parameters:
- shouldTrack- the tracking flag
- Returns:
- the spec.
- Since:
- 5.0.2
- See Also:
 
- 
errorMessageStrategySet anErrorMessageStrategyto use to build an error message when a exception occurs.- Parameters:
- errorMessageStrategy- the- ErrorMessageStrategy.
- Returns:
- the spec.
- Since:
- 5.0.2
- See Also:
 
- 
observationConventionProvide a customMessageReceiverObservationConvention.- Parameters:
- observationConvention- the observation convention to use.
- Returns:
- the spec.
- Since:
- 6.0.8
- See Also:
 
 
-