Class MessageProducerSpec<S extends MessageProducerSpec<S,​P>,​P extends MessageProducerSupport>

java.lang.Object
org.springframework.beans.factory.config.AbstractFactoryBean<T>
org.springframework.integration.dsl.IntegrationComponentSpec<S,​P>
org.springframework.integration.dsl.MessageProducerSpec<S,​P>
Type Parameters:
S - the target MessageProducerSpec implementation type.
P - the target MessageProducerSupport implementation type.
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanClassLoaderAware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.FactoryBean<P>, org.springframework.beans.factory.InitializingBean, org.springframework.context.Lifecycle, org.springframework.context.Phased, org.springframework.context.SmartLifecycle

public abstract class MessageProducerSpec<S extends MessageProducerSpec<S,​P>,​P extends MessageProducerSupport>
extends IntegrationComponentSpec<S,​P>
Since:
5.0
  • Field Summary

    Fields inherited from class org.springframework.integration.dsl.IntegrationComponentSpec

    PARSER, target

    Fields inherited from class org.springframework.beans.factory.config.AbstractFactoryBean

    logger

    Fields inherited from interface org.springframework.beans.factory.FactoryBean

    OBJECT_TYPE_ATTRIBUTE

    Fields inherited from interface org.springframework.context.SmartLifecycle

    DEFAULT_PHASE
  • Constructor Summary

    Constructors 
    Constructor Description
    MessageProducerSpec​(P producer)  
  • Method Summary

    Modifier and Type Method Description
    S autoStartup​(boolean autoStartup)  
    S errorChannel​(java.lang.String errorChannel)
    Configure the bean name of the MessageChannel to which error messages will be sent.
    S errorChannel​(org.springframework.messaging.MessageChannel errorChannel)
    Configure the MessageChannel to which error messages will be sent.
    S errorMessageStrategy​(ErrorMessageStrategy errorMessageStrategy)
    Set an ErrorMessageStrategy to use to build an error message when a exception occurs.
    S id​(java.lang.String id)
    Configure the component identifier.
    S outputChannel​(java.lang.String outputChannel)
    Specify the bean name of the outputChannel for the MessageProducer.
    S outputChannel​(org.springframework.messaging.MessageChannel outputChannel)
    Specify the outputChannel for the MessageProducer.
    S phase​(int phase)  
    S sendTimeout​(long sendTimeout)
    Configure the default timeout value to use for send operations.
    S shouldTrack​(boolean shouldTrack)
    Whether component should be tracked or not by message history.

    Methods inherited from class org.springframework.integration.dsl.IntegrationComponentSpec

    _this, createInstance, destroyInstance, doGet, get, getId, getObjectType, getPhase, isAutoStartup, isRunning, start, stop, stop

    Methods inherited from class org.springframework.beans.factory.config.AbstractFactoryBean

    afterPropertiesSet, destroy, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, isSingleton, setBeanClassLoader, setBeanFactory, setSingleton

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait