public class JmsOutboundGatewaySpec extends MessageHandlerSpec<JmsOutboundGatewaySpec,JmsOutboundGateway>
MessageHandlerSpec
for a JmsOutboundGateway
.Modifier and Type | Class and Description |
---|---|
class |
JmsOutboundGatewaySpec.ReplyContainerSpec
An
IntegrationComponentSpec for JmsOutboundGateway.ReplyContainerProperties . |
PARSER, target
logger
DEFAULT_PHASE
OBJECT_TYPE_ATTRIBUTE
Modifier | Constructor and Description |
---|---|
protected |
JmsOutboundGatewaySpec(ConnectionFactory connectionFactory) |
_this, createInstance, destroyInstance, doGet, get, getId, getObjectType, getPhase, id, isAutoStartup, isRunning, start, stop, stop
afterPropertiesSet, destroy, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, isSingleton, setBeanClassLoader, setBeanFactory, setSingleton
protected JmsOutboundGatewaySpec(ConnectionFactory connectionFactory)
public JmsOutboundGatewaySpec extractRequestPayload(boolean extractPayload)
extractPayload
- the extractPayload.JmsOutboundGatewaySpec
.JmsOutboundGateway.setExtractRequestPayload(boolean)
public JmsOutboundGatewaySpec extractReplyPayload(boolean extractPayload)
extractPayload
- the extractPayload.JmsOutboundGatewaySpec
.JmsOutboundGateway.setExtractReplyPayload(boolean)
public JmsOutboundGatewaySpec headerMapper(JmsHeaderMapper headerMapper)
headerMapper
- the headerMapper.JmsOutboundGatewaySpec
.JmsOutboundGateway.setHeaderMapper(JmsHeaderMapper)
public JmsOutboundGatewaySpec requestDestination(Destination destination)
destination
- the destination.JmsOutboundGatewaySpec
.JmsOutboundGateway.setRequestDestination(Destination)
public JmsOutboundGatewaySpec requestDestination(String destination)
destination
- the destination name.JmsOutboundGatewaySpec
.JmsOutboundGateway.setRequestDestinationName(String)
public JmsOutboundGatewaySpec requestDestinationExpression(String destination)
destination
- the destination expression.JmsOutboundGatewaySpec
.JmsOutboundGateway.setRequestDestinationExpression(org.springframework.expression.Expression)
public <P> JmsOutboundGatewaySpec requestDestination(java.util.function.Function<Message<P>,?> destinationFunction)
Function
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())
P
- the expected payload type.destinationFunction
- the destination function.JmsOutboundGatewaySpec
.JmsOutboundGateway.setRequestDestinationExpression(org.springframework.expression.Expression)
,
FunctionExpression
public JmsOutboundGatewaySpec replyDestination(Destination destination)
destination
- the destination.JmsOutboundGatewaySpec
.JmsOutboundGateway.setReplyDestination(Destination)
public JmsOutboundGatewaySpec replyDestination(String destination)
destination
- the destination name.JmsOutboundGatewaySpec
.JmsOutboundGateway.setReplyDestinationName(String)
public JmsOutboundGatewaySpec replyDestinationExpression(String destination)
destination
- the destination expression.JmsOutboundGatewaySpec
.JmsOutboundGateway.setReplyDestinationExpression(org.springframework.expression.Expression)
public <P> JmsOutboundGatewaySpec replyDestination(java.util.function.Function<Message<P>,?> destinationFunction)
Function
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())
P
- the expected payload type.destinationFunction
- the destination function.JmsOutboundGatewaySpec
.JmsOutboundGateway.setReplyDestinationExpression(org.springframework.expression.Expression)
,
FunctionExpression
public JmsOutboundGatewaySpec destinationResolver(DestinationResolver destinationResolver)
destinationResolver
- the destinationResolver.JmsOutboundGatewaySpec
.JmsOutboundGateway.setDestinationResolver(DestinationResolver)
public JmsOutboundGatewaySpec jmsMessageConverter(MessageConverter messageConverter)
messageConverter
- the messageConverter.JmsOutboundGatewaySpec
.JmsOutboundGateway.setMessageConverter(MessageConverter)
public JmsOutboundGatewaySpec correlationKey(String correlationKey)
correlationKey
- the correlationKeyJmsOutboundGatewaySpec
.JmsOutboundGateway.setCorrelationKey(String)
public JmsOutboundGatewaySpec requestPubSubDomain(boolean pubSubDomain)
pubSubDomain
- the pubSubDomainJmsOutboundGatewaySpec
.JmsOutboundGateway.setReplyPubSubDomain(boolean)
public JmsOutboundGatewaySpec replyPubSubDomain(boolean pubSubDomain)
pubSubDomain
- the pubSubDomainJmsOutboundGatewaySpec
.JmsOutboundGateway.setRequestPubSubDomain(boolean)
public JmsOutboundGatewaySpec deliveryPersistent(boolean deliveryPersistent)
deliveryPersistent
- the deliveryPersistent.JmsOutboundGatewaySpec
.JmsOutboundGateway.setDeliveryPersistent(boolean)
public JmsOutboundGatewaySpec priority(int priority)
priority
- the priority.JmsOutboundGatewaySpec
.JmsOutboundGateway.setDefaultPriority(int)
public JmsOutboundGatewaySpec timeToLive(long timeToLive)
timeToLive
- the timeToLive.JmsOutboundGatewaySpec
.JmsOutboundGateway.setTimeToLive(long)
public JmsOutboundGatewaySpec receiveTimeout(long receiveTimeout)
receiveTimeout
- the receiveTimeout.JmsOutboundGatewaySpec
.JmsOutboundGateway.setReceiveTimeout(long)
public JmsOutboundGatewaySpec explicitQosEnabled(boolean explicitQosEnabled)
explicitQosEnabled
- the explicitQosEnabled.JmsOutboundGatewaySpec
.JmsOutboundGateway.setExplicitQosEnabled(boolean)
public JmsOutboundGatewaySpec replyContainer()
JmsOutboundGatewaySpec
.public JmsOutboundGatewaySpec replyContainer(java.util.function.Consumer<JmsOutboundGatewaySpec.ReplyContainerSpec> configurer)
Consumer
callback with a JmsOutboundGatewaySpec.ReplyContainerSpec
.configurer
- the configurer.JmsOutboundGatewaySpec
.