Class JmsOutboundGatewaySpec
java.lang.Object
org.springframework.integration.dsl.IntegrationComponentSpec<S,H>
org.springframework.integration.dsl.MessageHandlerSpec<JmsOutboundGatewaySpec,JmsOutboundGateway>
org.springframework.integration.jms.dsl.JmsOutboundGatewaySpec
- All Implemented Interfaces:
DisposableBean
,FactoryBean<JmsOutboundGateway>
,InitializingBean
,Lifecycle
,Phased
,SmartLifecycle
public class JmsOutboundGatewaySpec
extends MessageHandlerSpec<JmsOutboundGatewaySpec,JmsOutboundGateway>
A
MessageHandlerSpec
for a JmsOutboundGateway
.- Since:
- 5.0
- Author:
- Artem Bilan
-
Nested Class Summary
Modifier and TypeClassDescriptionclass
-
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
JmsOutboundGatewaySpec
(ConnectionFactory connectionFactory) -
Method Summary
Modifier and TypeMethodDescriptioncorrelationKey
(String correlationKey) deliveryPersistent
(boolean deliveryPersistent) destinationResolver
(DestinationResolver destinationResolver) explicitQosEnabled
(boolean explicitQosEnabled) extractReplyPayload
(boolean extractPayload) extractRequestPayload
(boolean extractPayload) headerMapper
(JmsHeaderMapper headerMapper) jmsMessageConverter
(MessageConverter messageConverter) priority
(int priority) Default priority.receiveTimeout
(long receiveTimeout) Configure a reply container with default properties.Configure a reply container with a reply container specification determined by invoking theConsumer
callback with aJmsOutboundGatewaySpec.ReplyContainerSpec
.replyDestination
(Destination destination) replyDestination
(String destination) replyDestination
(Function<Message<P>, ?> destinationFunction) Configure aFunction
that will be invoked at run time to determine the destination from which a reply will be received.replyDestinationExpression
(String destination) replyPubSubDomain
(boolean pubSubDomain) requestDestination
(Destination destination) requestDestination
(String destination) requestDestination
(Function<Message<P>, ?> destinationFunction) Configure aFunction
that will be invoked at runtime to determine the destination to which a message will be sent.requestDestinationExpression
(String destination) requestPubSubDomain
(boolean pubSubDomain) timeToLive
(long timeToLive) Methods inherited from class org.springframework.integration.dsl.IntegrationComponentSpec
_this, afterPropertiesSet, destroy, doGet, getId, getObject, getObjectType, getPhase, id, 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
-
JmsOutboundGatewaySpec
-
-
Method Details
-
extractRequestPayload
- Parameters:
extractPayload
- the extractPayload.- Returns:
- the current
JmsOutboundGatewaySpec
. - See Also:
-
extractReplyPayload
- Parameters:
extractPayload
- the extractPayload.- Returns:
- the current
JmsOutboundGatewaySpec
. - See Also:
-
headerMapper
- Parameters:
headerMapper
- the headerMapper.- Returns:
- the current
JmsOutboundGatewaySpec
. - See Also:
-
requestDestination
- Parameters:
destination
- the destination.- Returns:
- the current
JmsOutboundGatewaySpec
. - See Also:
-
requestDestination
- Parameters:
destination
- the destination name.- Returns:
- the current
JmsOutboundGatewaySpec
. - See Also:
-
requestDestinationExpression
- Parameters:
destination
- the destination expression.- Returns:
- the current
JmsOutboundGatewaySpec
. - See Also:
-
requestDestination
Configure aFunction
that will be invoked at runtime to determine the destination to which a message will be sent. Typically used with a Java 8 Lambda expression:.<Foo>destination(m -> m.getPayload().getState())
- Type Parameters:
P
- the expected payload type.- Parameters:
destinationFunction
- the destination function.- Returns:
- the current
JmsOutboundGatewaySpec
. - See Also:
-
replyDestination
- Parameters:
destination
- the destination.- Returns:
- the current
JmsOutboundGatewaySpec
. - See Also:
-
replyDestination
- Parameters:
destination
- the destination name.- Returns:
- the current
JmsOutboundGatewaySpec
. - See Also:
-
replyDestinationExpression
- Parameters:
destination
- the destination expression.- Returns:
- the current
JmsOutboundGatewaySpec
. - See Also:
-
replyDestination
Configure aFunction
that will be invoked at run time to determine the destination from which a reply will be received. Typically used with a Java 8 Lambda expression:.<Foo>replyDestination(m -> m.getPayload().getState())
- Type Parameters:
P
- the expected payload type.- Parameters:
destinationFunction
- the destination function.- Returns:
- the current
JmsOutboundGatewaySpec
. - See Also:
-
destinationResolver
- Parameters:
destinationResolver
- the destinationResolver.- Returns:
- the current
JmsOutboundGatewaySpec
. - See Also:
-
jmsMessageConverter
- Parameters:
messageConverter
- the messageConverter.- Returns:
- the current
JmsOutboundGatewaySpec
. - See Also:
-
correlationKey
- Parameters:
correlationKey
- the correlationKey- Returns:
- the current
JmsOutboundGatewaySpec
. - See Also:
-
requestPubSubDomain
- Parameters:
pubSubDomain
- the pubSubDomain- Returns:
- the current
JmsOutboundGatewaySpec
. - See Also:
-
replyPubSubDomain
- Parameters:
pubSubDomain
- the pubSubDomain- Returns:
- the current
JmsOutboundGatewaySpec
. - See Also:
-
deliveryPersistent
- Parameters:
deliveryPersistent
- the deliveryPersistent.- Returns:
- the current
JmsOutboundGatewaySpec
. - See Also:
-
priority
Default priority. May be overridden at run time with a message priority header.- Parameters:
priority
- the priority.- Returns:
- the current
JmsOutboundGatewaySpec
. - See Also:
-
timeToLive
- Parameters:
timeToLive
- the timeToLive.- Returns:
- the current
JmsOutboundGatewaySpec
. - See Also:
-
receiveTimeout
- Parameters:
receiveTimeout
- the receiveTimeout.- Returns:
- the current
JmsOutboundGatewaySpec
. - See Also:
-
explicitQosEnabled
- Parameters:
explicitQosEnabled
- the explicitQosEnabled.- Returns:
- the current
JmsOutboundGatewaySpec
. - See Also:
-
replyContainer
Configure a reply container with default properties.- Returns:
- the current
JmsOutboundGatewaySpec
.
-
replyContainer
public JmsOutboundGatewaySpec replyContainer(Consumer<JmsOutboundGatewaySpec.ReplyContainerSpec> configurer) Configure a reply container with a reply container specification determined by invoking theConsumer
callback with aJmsOutboundGatewaySpec.ReplyContainerSpec
.- Parameters:
configurer
- the configurer.- Returns:
- the current
JmsOutboundGatewaySpec
.
-