Class MessagingGatewaySpec<S extends MessagingGatewaySpec<S,​G>,​G extends MessagingGatewaySupport>

java.lang.Object
org.springframework.beans.factory.config.AbstractFactoryBean<T>
org.springframework.integration.dsl.IntegrationComponentSpec<S,​G>
org.springframework.integration.dsl.MessagingGatewaySpec<S,​G>
Type Parameters:
S - the target MessagingGatewaySpec implementation type.
G - the target MessagingGatewaySupport 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<G>, org.springframework.beans.factory.InitializingBean, org.springframework.context.Lifecycle, org.springframework.context.Phased, org.springframework.context.SmartLifecycle

public abstract class MessagingGatewaySpec<S extends MessagingGatewaySpec<S,​G>,​G extends MessagingGatewaySupport>
extends IntegrationComponentSpec<S,​G>
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
    MessagingGatewaySpec​(G gateway)  
  • Method Summary

    Modifier and Type Method Description
    S autoStartup​(boolean autoStartup)
    An auto-startup flag.
    S errorChannel​(java.lang.String errorChannelName)
    An error channel name to use.
    S errorChannel​(org.springframework.messaging.MessageChannel errorChannel)
    An error channel to use.
    S errorOnTimeout​(boolean errorOnTimeout)
    If errorOnTimeout is true, construct an instance that will send an ErrorMessage with a MessageTimeoutException payload to the error channel if a reply is expected but none is received.
    S id​(java.lang.String id)
    Configure the component identifier.
    S phase​(int phase)
    A lifecycle phase to use.
    S replyChannel​(java.lang.String replyChannelName)
    A reply channel name to use.
    S replyChannel​(org.springframework.messaging.MessageChannel replyChannel)
    A reply channel to use.
    S replyMapper​(OutboundMessageMapper<?> replyMapper)
    S replyTimeout​(long replyTimeout)
    A reply timeout to use.
    S requestChannel​(java.lang.String requestChannelName)
    A request channel name to use.
    S requestChannel​(org.springframework.messaging.MessageChannel requestChannel)
    A request channel to use.
    S requestMapper​(InboundMessageMapper<?> requestMapper)
    S requestTimeout​(long requestTimeout)
    A request timeout to use.
    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