Class AmqpOutboundEndpointSpec<S extends AmqpOutboundEndpointSpec<S>>
java.lang.Object
org.springframework.beans.factory.config.AbstractFactoryBean<T>
org.springframework.integration.dsl.IntegrationComponentSpec<S,H>
org.springframework.integration.dsl.MessageHandlerSpec<S,E>
org.springframework.integration.amqp.dsl.AmqpBaseOutboundEndpointSpec<S,AmqpOutboundEndpoint>
org.springframework.integration.amqp.dsl.AmqpOutboundEndpointSpec<S>
- Type Parameters:
S
- the spec subclass type.
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.beans.factory.BeanClassLoaderAware
,org.springframework.beans.factory.BeanFactoryAware
,org.springframework.beans.factory.DisposableBean
,org.springframework.beans.factory.FactoryBean<AmqpOutboundEndpoint>
,org.springframework.beans.factory.InitializingBean
,org.springframework.context.Lifecycle
,org.springframework.context.Phased
,org.springframework.context.SmartLifecycle
- Direct Known Subclasses:
AmqpOutboundChannelAdapterSpec
,AmqpOutboundGatewaySpec
public abstract class AmqpOutboundEndpointSpec<S extends AmqpOutboundEndpointSpec<S>> extends AmqpBaseOutboundEndpointSpec<S,AmqpOutboundEndpoint>
Base spec for outbound AMQP endpoints.
- Since:
- 5.0
-
Field Summary
Fields Modifier and Type Field Description protected boolean
expectReply
Fields inherited from class org.springframework.integration.amqp.dsl.AmqpBaseOutboundEndpointSpec
headerMapper
-
Constructor Summary
Constructors Modifier Constructor Description protected
AmqpOutboundEndpointSpec(org.springframework.amqp.core.AmqpTemplate amqpTemplate, boolean expectReply)
-
Method Summary
Modifier and Type Method Description S
mappedReplyHeaders(java.lang.String... headers)
Provide the header names that should be mapped to a response from aMessageHeaders
.S
waitForConfirm(boolean waitForConfirm)
Wait for a publisher confirm.Methods inherited from class org.springframework.integration.amqp.dsl.AmqpBaseOutboundEndpointSpec
confirmAckChannel, confirmCorrelationExpression, confirmCorrelationExpression, confirmCorrelationFunction, confirmNackChannel, confirmTimeout, defaultDeliveryMode, delay, delayExpression, delayExpression, delayFunction, errorMessageStrategy, exchangeName, exchangeNameExpression, exchangeNameExpression, exchangeNameFunction, headerMapper, headersMappedLast, lazyConnect, mappedRequestHeaders, returnChannel, routingKey, routingKeyExpression, routingKeyExpression, routingKeyFunction
Methods inherited from class org.springframework.integration.dsl.IntegrationComponentSpec
_this, createInstance, destroyInstance, doGet, get, getId, getObjectType, getPhase, id, isAutoStartup, isRunning, start, stop, stop
-
Field Details
-
expectReply
protected final boolean expectReply
-
-
Constructor Details
-
AmqpOutboundEndpointSpec
protected AmqpOutboundEndpointSpec(org.springframework.amqp.core.AmqpTemplate amqpTemplate, boolean expectReply)
-
-
Method Details
-
mappedReplyHeaders
Description copied from class:AmqpBaseOutboundEndpointSpec
Provide the header names that should be mapped to a response from aMessageHeaders
.- Overrides:
mappedReplyHeaders
in classAmqpBaseOutboundEndpointSpec<S extends AmqpOutboundEndpointSpec<S>,AmqpOutboundEndpoint>
- Parameters:
headers
- The reply header names.- Returns:
- the spec
-
waitForConfirm
Wait for a publisher confirm.- Parameters:
waitForConfirm
- true to wait.- Returns:
- the spec.
- Since:
- 5.2
- See Also:
AmqpOutboundEndpoint.setWaitForConfirm(boolean)
-