S - the target MessagingGatewaySpec implementation type.G - the target MessagingGatewaySupport implementation type.public abstract class MessagingGatewaySpec<S extends MessagingGatewaySpec<S,G>,G extends MessagingGatewaySupport> extends IntegrationComponentSpec<S,G>
logger, PARSER, target| Constructor and Description |
|---|
MessagingGatewaySpec(G gateway) |
| Modifier and Type | Method and Description |
|---|---|
S |
autoStartup(boolean autoStartup)
An auto-startup flag.
|
S |
errorChannel(org.springframework.messaging.MessageChannel errorChannel)
An error channel to use.
|
S |
errorChannel(java.lang.String errorChannelName)
An error channel name to use.
|
S |
id(java.lang.String id)
Configure the component identifier.
|
S |
phase(int phase)
A lifecycle phase to use.
|
S |
replyChannel(org.springframework.messaging.MessageChannel replyChannel)
A reply channel to use.
|
S |
replyChannel(java.lang.String replyChannelName)
A reply channel name to use.
|
S |
replyMapper(OutboundMessageMapper<?> replyMapper)
An
OutboundMessageMapper to use. |
S |
replyTimeout(long replyTimeout)
A reply timeout to use.
|
S |
requestChannel(org.springframework.messaging.MessageChannel requestChannel)
A request channel to use.
|
S |
requestChannel(java.lang.String requestChannelName)
A request channel name to use.
|
S |
requestMapper(InboundMessageMapper<?> requestMapper)
An
InboundMessageMapper to use. |
S |
requestTimeout(long requestTimeout)
A request timeout to use.
|
S |
shouldTrack(boolean shouldTrack)
Whether component should be tracked or not by message history.
|
_this, doGet, get, getId, getObject, getObjectType, isSingletonpublic MessagingGatewaySpec(G gateway)
public S id(java.lang.String id)
IntegrationComponentSpecbeanName to register the
bean in the application context for this component.id in class IntegrationComponentSpec<S extends MessagingGatewaySpec<S,G>,G extends MessagingGatewaySupport>id - the id.public S phase(int phase)
phase - the phase.SmartLifecyclepublic S autoStartup(boolean autoStartup)
autoStartup - the autoStartup.SmartLifecyclepublic S replyChannel(org.springframework.messaging.MessageChannel replyChannel)
replyChannel - the replyChannel.MessagingGatewaySupport.setReplyChannel(MessageChannel)public S replyChannel(java.lang.String replyChannelName)
replyChannelName - the name of replyChannel.MessagingGatewaySupport.setReplyChannelName(String)public S requestChannel(org.springframework.messaging.MessageChannel requestChannel)
requestChannel - the requestChannel.MessagingGatewaySupport.setRequestChannel(MessageChannel)public S requestChannel(java.lang.String requestChannelName)
requestChannelName - the name of requestChannel.MessagingGatewaySupport.setRequestChannelName(String)public S errorChannel(org.springframework.messaging.MessageChannel errorChannel)
errorChannel - the errorChannel.MessagingGatewaySupport.setErrorChannel(MessageChannel)public S errorChannel(java.lang.String errorChannelName)
errorChannelName - the name of errorChannel.MessagingGatewaySupport.setErrorChannelName(String)public S requestTimeout(long requestTimeout)
requestTimeout - the requestTimeout.MessagingGatewaySupport.setRequestTimeout(long)public S replyTimeout(long replyTimeout)
replyTimeout - the replyTimeout.MessagingGatewaySupport.setReplyTimeout(long)public S requestMapper(InboundMessageMapper<?> requestMapper)
InboundMessageMapper to use.requestMapper - the requestMapper.MessagingGatewaySupport.setRequestMapper(InboundMessageMapper)public S replyMapper(OutboundMessageMapper<?> replyMapper)
OutboundMessageMapper to use.replyMapper - the replyMapper.MessagingGatewaySupport.setReplyMapper(OutboundMessageMapper)public S shouldTrack(boolean shouldTrack)
shouldTrack - the tracking flagMessagingGatewaySupport.setShouldTrack(boolean)