Class JmsInboundGatewaySpec<S extends JmsInboundGatewaySpec<S>>
java.lang.Object
org.springframework.integration.dsl.IntegrationComponentSpec<S, JmsInboundGateway>
org.springframework.integration.dsl.MessagingGatewaySpec<S, JmsInboundGateway>
org.springframework.integration.jms.dsl.JmsInboundGatewaySpec<S>
- Type Parameters:
- S- the target- JmsInboundGatewaySpecimplementation type.
- All Implemented Interfaces:
- DisposableBean,- FactoryBean<JmsInboundGateway>,- InitializingBean,- Lifecycle,- Phased,- SmartLifecycle
- Direct Known Subclasses:
- JmsInboundGatewaySpec.JmsInboundGatewayListenerContainerSpec
public class JmsInboundGatewaySpec<S extends JmsInboundGatewaySpec<S>>
extends MessagingGatewaySpec<S, JmsInboundGateway>
A 
MessagingGatewaySpec for a JmsInboundGateway.- Since:
- 5.0
- Author:
- Artem Bilan, Gary Russell
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classJmsInboundGatewaySpec.JmsInboundGatewayListenerContainerSpec<S extends JmsListenerContainerSpec<S,C>, C extends AbstractMessageListenerContainer> AnAbstractMessageListenerContainer-basedJmsInboundGatewaySpecextension.
- 
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 SummaryConstructorsModifierConstructorDescriptionprotectedJmsInboundGatewaySpec(AbstractMessageListenerContainer listenerContainer) 
- 
Method SummaryModifier and TypeMethodDescriptioncorrelationKey(String correlationKey) defaultReplyDestination(Destination defaultReplyDestination) defaultReplyQueueName(String destinationName) defaultReplyTopicName(String destinationName) destinationResolver(DestinationResolver destinationResolver) explicitQosEnabledForReplies(boolean explicitQosEnabledForReplies) extractReplyPayload(boolean extractReplyPayload) extractRequestPayload(boolean extractRequestPayload) jmsMessageConverter(MessageConverter messageConverter) recoveryCallback(org.springframework.retry.RecoveryCallback<Message<?>> recoveryCallback) Set aRecoveryCallbackwhen using retry within the adapter.replyDeliveryPersistent(boolean replyDeliveryPersistent) replyPriority(int replyPriority) replyTimeToLive(long replyTimeToLive) replyToExpression(String replyToExpression) Set a SpEL expression to resolve a 'replyTo' destination from a requestMessageas a root evaluation object ifMessage.getJMSReplyTo()is null.replyToExpression(Expression replyToExpression) Set a SpEL expression to resolve a 'replyTo' destination from a requestMessageas a root evaluation object ifMessage.getJMSReplyTo()is null.replyToFunction(CheckedFunction<Message, ?, JMSException> replyToFunction) Set a function to resolve a 'replyTo' destination from a requestMessageas a root evaluation object ifMessage.getJMSReplyTo()is null.retryTemplate(org.springframework.retry.support.RetryTemplate retryTemplate) Set aRetryTemplateto use for retrying a message delivery within the adapter.setHeaderMapper(JmsHeaderMapper headerMapper) shutdownContainerOnStop(boolean shutdown) Set tofalseto prevent listener container shutdown when the endpoint is stopped.Methods inherited from class org.springframework.integration.dsl.MessagingGatewaySpecautoStartup, errorChannel, errorChannel, errorOnTimeout, id, observationConvention, phase, replyChannel, replyChannel, replyMapper, replyTimeout, requestChannel, requestChannel, requestMapper, requestTimeout, shouldTrackMethods 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- 
JmsInboundGatewaySpec
 
- 
- 
Method Details- 
defaultReplyDestination- Parameters:
- defaultReplyDestination- the defaultReplyDestination
- Returns:
- the spec.
- See Also:
 
- 
defaultReplyQueueName
- 
defaultReplyTopicName
- 
replyTimeToLive- Parameters:
- replyTimeToLive- the replyTimeToLive
- Returns:
- the spec.
- See Also:
 
- 
replyPriority- Parameters:
- replyPriority- the replyPriority
- Returns:
- the spec.
- See Also:
 
- 
replyDeliveryPersistent- Parameters:
- replyDeliveryPersistent- the replyDeliveryPersistent
- Returns:
- the spec.
- See Also:
 
- 
correlationKey
- 
explicitQosEnabledForReplies- Parameters:
- explicitQosEnabledForReplies- the explicitQosEnabledForReplies.
- Returns:
- the spec.
- See Also:
 
- 
destinationResolver- Parameters:
- destinationResolver- the destinationResolver.
- Returns:
- the spec.
- See Also:
 
- 
replyToExpressionSet a SpEL expression to resolve a 'replyTo' destination from a requestMessageas a root evaluation object ifMessage.getJMSReplyTo()is null.- Parameters:
- replyToExpression- the SpEL expression for 'replyTo' destination.
- Returns:
- the spec.
- Since:
- 6.1
- See Also:
 
- 
replyToFunctionSet a function to resolve a 'replyTo' destination from a requestMessageas a root evaluation object ifMessage.getJMSReplyTo()is null.- Parameters:
- replyToFunction- the function for 'replyTo' destination.
- Returns:
- the spec.
- Since:
- 6.1
- See Also:
 
- 
replyToExpressionSet a SpEL expression to resolve a 'replyTo' destination from a requestMessageas a root evaluation object ifMessage.getJMSReplyTo()is null.- Parameters:
- replyToExpression- the SpEL expression for 'replyTo' destination.
- Returns:
- the spec.
- Since:
- 6.1
- See Also:
 
- 
jmsMessageConverter- Parameters:
- messageConverter- the messageConverter.
- Returns:
- the spec.
- See Also:
 
- 
setHeaderMapper- Parameters:
- headerMapper- the headerMapper.
- Returns:
- the spec.
- See Also:
 
- 
extractRequestPayload- Parameters:
- extractRequestPayload- the extractRequestPayload.
- Returns:
- the spec.
- See Also:
 
- 
extractReplyPayload- Parameters:
- extractReplyPayload- the extractReplyPayload.
- Returns:
- the spec.
- See Also:
 
- 
retryTemplateSet aRetryTemplateto use for retrying a message delivery within the adapter. Unlike adding retry at the container level, this can be used with anErrorMessageSendingRecovererRecoveryCallbackto publish to the error channel after retries are exhausted. You generally should not configure an error channel when using retry here, use aRecoveryCallbackinstead.- Parameters:
- retryTemplate- the template.
- Since:
- 6.3
- See Also:
 
- 
recoveryCallback
- 
shutdownContainerOnStopSet tofalseto prevent listener container shutdown when the endpoint is stopped. Then, if so configured, any cached consumer(s) in the container will remain. Otherwise, the shared connection and will be closed and the listener invokers shut down; this behavior is new starting with version 5.1. Default: true.- Parameters:
- shutdown- false to not shutdown.
- Returns:
- the spec.
- Since:
- 5.1
 
 
-