Class JmsInboundGatewaySpec<S extends JmsInboundGatewaySpec<S>>
java.lang.Object
org.springframework.integration.dsl.IntegrationComponentSpec<S,G>
org.springframework.integration.dsl.MessagingGatewaySpec<S,JmsInboundGateway>
org.springframework.integration.jms.dsl.JmsInboundGatewaySpec<S>
- Type Parameters:
S
- the targetJmsInboundGatewaySpec
implementation 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 Summary
Modifier and TypeClassDescriptionstatic class
JmsInboundGatewaySpec.JmsInboundGatewayListenerContainerSpec<S extends JmsListenerContainerSpec<S,
C>, C extends AbstractMessageListenerContainer> AnAbstractMessageListenerContainer
-basedJmsInboundGatewaySpec
extension. -
Field Summary
Fields inherited from class org.springframework.integration.dsl.IntegrationComponentSpec
logger, PARSER, target
Fields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE
Fields inherited from interface org.springframework.context.SmartLifecycle
DEFAULT_PHASE
-
Constructor Summary
ModifierConstructorDescriptionprotected
JmsInboundGatewaySpec
(AbstractMessageListenerContainer listenerContainer) -
Method Summary
Modifier 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) replyDeliveryPersistent
(boolean replyDeliveryPersistent) replyPriority
(int replyPriority) replyTimeToLive
(long replyTimeToLive) replyToExpression
(String replyToExpression) Set a SpEL expression to resolve a 'replyTo' destination from a requestMessage
as a root evaluation object ifMessage.getJMSReplyTo()
is null.replyToExpression
(Expression replyToExpression) Set a SpEL expression to resolve a 'replyTo' destination from a requestMessage
as a root evaluation object ifMessage.getJMSReplyTo()
is null.replyToFunction
(CheckedFunction<Message, ?> replyToFunction) Set a function to resolve a 'replyTo' destination from a requestMessage
as a root evaluation object ifMessage.getJMSReplyTo()
is null.setHeaderMapper
(JmsHeaderMapper headerMapper) shutdownContainerOnStop
(boolean shutdown) Set to false to prevent listener container shutdown when the endpoint is stopped.Methods inherited from class org.springframework.integration.dsl.MessagingGatewaySpec
autoStartup, errorChannel, errorChannel, errorOnTimeout, id, observationConvention, phase, replyChannel, replyChannel, replyMapper, replyTimeout, requestChannel, requestChannel, requestMapper, requestTimeout, shouldTrack
Methods inherited from class org.springframework.integration.dsl.IntegrationComponentSpec
_this, afterPropertiesSet, destroy, doGet, get, getId, getObject, getObjectType, getPhase, isAutoStartup, isRunning, start, stop, stop
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.beans.factory.FactoryBean
isSingleton
-
Constructor Details
-
JmsInboundGatewaySpec
-
-
Method Details
-
defaultReplyDestination
- Parameters:
defaultReplyDestination
- the defaultReplyDestination- Returns:
- the spec.
- See Also:
-
defaultReplyQueueName
- Parameters:
destinationName
- the destinationName- Returns:
- the spec.
- See Also:
-
defaultReplyTopicName
- Parameters:
destinationName
- the destinationName- Returns:
- the spec.
- See Also:
-
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
- Parameters:
correlationKey
- the correlationKey- Returns:
- the spec.
- See Also:
-
explicitQosEnabledForReplies
- Parameters:
explicitQosEnabledForReplies
- the explicitQosEnabledForReplies.- Returns:
- the spec.
- See Also:
-
destinationResolver
- Parameters:
destinationResolver
- the destinationResolver.- Returns:
- the spec.
- See Also:
-
replyToExpression
Set a SpEL expression to resolve a 'replyTo' destination from a requestMessage
as a root evaluation object ifMessage.getJMSReplyTo()
is null.- Parameters:
replyToExpression
- the SpEL expression for 'replyTo' destination.- Returns:
- the spec.
- Since:
- 6.1
- See Also:
-
replyToFunction
Set a function to resolve a 'replyTo' destination from a requestMessage
as a root evaluation object ifMessage.getJMSReplyTo()
is null.- Parameters:
replyToFunction
- the function for 'replyTo' destination.- Returns:
- the spec.
- Since:
- 6.1
- See Also:
-
replyToExpression
Set a SpEL expression to resolve a 'replyTo' destination from a requestMessage
as 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:
-
shutdownContainerOnStop
Set to false to 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
-