Class MessagingGatewaySpec<S extends MessagingGatewaySpec<S,G>,G extends MessagingGatewaySupport>  
java.lang.Object
org.springframework.integration.dsl.IntegrationComponentSpec<S,G>
 
org.springframework.integration.dsl.MessagingGatewaySpec<S,G> 
- Type Parameters:
- S- the target- MessagingGatewaySpecimplementation type.
- G- the target- MessagingGatewaySupportimplementation type.
- All Implemented Interfaces:
- DisposableBean,- FactoryBean<G>,- InitializingBean,- Lifecycle,- Phased,- SmartLifecycle
- Direct Known Subclasses:
- AmqpBaseInboundGatewaySpec,- BaseWsInboundGatewaySpec,- HttpInboundEndpointSupportSpec,- JmsInboundGatewaySpec,- KafkaInboundGatewaySpec,- RSocketInboundGatewaySpec,- TcpInboundGatewaySpec
public abstract class MessagingGatewaySpec<S extends MessagingGatewaySpec<S,G>,G extends MessagingGatewaySupport>  
extends IntegrationComponentSpec<S,G> 
- 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) An auto-startup flag.errorChannel(String errorChannelName) An error channel name to use.errorChannel(MessageChannel errorChannel) An error channel to use.errorOnTimeout(boolean errorOnTimeout) If errorOnTimeout is true, construct an instance that will send anErrorMessagewith aMessageTimeoutExceptionpayload to the error channel if a reply is expected but none is received.Configure the component identifier.observationConvention(MessageRequestReplyReceiverObservationConvention observationConvention) Provide a customMessageRequestReplyReceiverObservationConvention.phase(int phase) A lifecycle phase to use.replyChannel(String replyChannelName) A reply channel name to use.replyChannel(MessageChannel replyChannel) A reply channel to use.replyMapper(OutboundMessageMapper<?> replyMapper) AnOutboundMessageMapperto use.replyTimeout(long replyTimeout) A reply timeout to use.requestChannel(String requestChannelName) A request channel name to use.requestChannel(MessageChannel requestChannel) A request channel to use.requestMapper(InboundMessageMapper<?> requestMapper) AnInboundMessageMapperto use.requestTimeout(long requestTimeout) A request timeout to use.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- 
MessagingGatewaySpec
 
- 
- 
Method Details- 
idDescription copied from class:IntegrationComponentSpecConfigure the component identifier. Used as thebeanNameto register the bean in the application context for this component.- Overrides:
- idin class- IntegrationComponentSpec<S extends MessagingGatewaySpec<S,- G>, - G extends MessagingGatewaySupport> 
- Parameters:
- id- the id.
- Returns:
- the spec.
 
- 
phaseA lifecycle phase to use.- Parameters:
- phase- the phase.
- Returns:
- the spec.
- See Also:
 
- 
autoStartupAn auto-startup flag.- Parameters:
- autoStartup- the autoStartup.
- Returns:
- the spec.
- See Also:
 
- 
replyChannelA reply channel to use.- Parameters:
- replyChannel- the replyChannel.
- Returns:
- the spec.
- See Also:
 
- 
replyChannel
- 
requestChannelA request channel to use.- Parameters:
- requestChannel- the requestChannel.
- Returns:
- the spec.
- See Also:
 
- 
requestChannel
- 
errorChannelAn error channel to use.- Parameters:
- errorChannel- the errorChannel.
- Returns:
- the spec.
- See Also:
 
- 
errorChannel
- 
requestTimeoutA request timeout to use.- Parameters:
- requestTimeout- the requestTimeout.
- Returns:
- the spec.
- See Also:
 
- 
replyTimeoutA reply timeout to use.- Parameters:
- replyTimeout- the replyTimeout.
- Returns:
- the spec.
- See Also:
 
- 
errorOnTimeoutIf errorOnTimeout is true, construct an instance that will send anErrorMessagewith aMessageTimeoutExceptionpayload to the error channel if a reply is expected but none is received. If no error channel is configured, theMessageTimeoutExceptionwill be thrown.- Parameters:
- errorOnTimeout- true to create the error message on reply timeout.
- Returns:
- the spec
- Since:
- 5.2.2
- See Also:
 
- 
requestMapperAnInboundMessageMapperto use.- Parameters:
- requestMapper- the requestMapper.
- Returns:
- the spec.
- See Also:
 
- 
replyMapperAnOutboundMessageMapperto use.- Parameters:
- replyMapper- the replyMapper.
- Returns:
- the spec.
- 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:
 
- 
observationConventionpublic S observationConvention(MessageRequestReplyReceiverObservationConvention observationConvention) Provide a customMessageRequestReplyReceiverObservationConvention.- Parameters:
- observationConvention- the observation convention to use.
- Returns:
- the spec.
- Since:
- 6.0.8
- See Also:
 
 
-