Class BarrierSpec
java.lang.Object
org.springframework.beans.factory.config.AbstractFactoryBean<T>
org.springframework.integration.dsl.IntegrationComponentSpec<S,reactor.util.function.Tuple2<F,H>>
org.springframework.integration.dsl.EndpointSpec<S,ConsumerEndpointFactoryBean,H>
org.springframework.integration.dsl.ConsumerEndpointSpec<BarrierSpec,BarrierMessageHandler>
org.springframework.integration.dsl.BarrierSpec
- All Implemented Interfaces:
Aware
,BeanClassLoaderAware
,BeanFactoryAware
,DisposableBean
,FactoryBean<reactor.util.function.Tuple2<ConsumerEndpointFactoryBean,BarrierMessageHandler>>
,InitializingBean
,Lifecycle
,Phased
,SmartLifecycle
,ComponentsRegistration
public class BarrierSpec extends ConsumerEndpointSpec<BarrierSpec,BarrierMessageHandler>
A
MessageHandlerSpec
for the BarrierMessageHandler
.- Since:
- 5.0
- Author:
- Artem Bilan
-
Field Summary
Fields inherited from class org.springframework.integration.dsl.EndpointSpec
componentsToRegister, endpointFactoryBean, handler
Fields inherited from class org.springframework.integration.dsl.IntegrationComponentSpec
PARSER, target
-
Constructor Summary
Constructors Modifier Constructor Description protected
BarrierSpec(long timeout)
-
Method Summary
Modifier and Type Method Description BarrierSpec
async(boolean async)
Allow async replies.BarrierSpec
correlationStrategy(CorrelationStrategy correlationStrategy)
reactor.util.function.Tuple2<ConsumerEndpointFactoryBean,BarrierMessageHandler>
doGet()
BarrierSpec
order(int order)
BarrierSpec
outputProcessor(MessageGroupProcessor outputProcessor)
BarrierSpec
requiresReply(boolean requiresReply)
BarrierSpec
sendTimeout(long sendTimeout)
Methods inherited from class org.springframework.integration.dsl.ConsumerEndpointSpec
advice, autoStartup, customizeMonoReply, handleMessageAdvice, notPropagatedHeaders, phase, poller, reactive, reactive, role, taskScheduler, transactional, transactional, transactional, transactional, transactional
Methods inherited from class org.springframework.integration.dsl.EndpointSpec
assertHandler, getComponentsToRegister, id, obtainInputChannelFromFlow, obtainInputChannelFromFlow, poller, poller
Methods inherited from class org.springframework.integration.dsl.IntegrationComponentSpec
_this, createInstance, destroyInstance, get, getId, getObjectType, getPhase, isAutoStartup, isRunning, start, stop, stop
Methods inherited from class org.springframework.beans.factory.config.AbstractFactoryBean
afterPropertiesSet, destroy, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, isSingleton, setBeanClassLoader, setBeanFactory, setSingleton
-
Constructor Details
-
BarrierSpec
protected BarrierSpec(long timeout)
-
-
Method Details
-
outputProcessor
-
correlationStrategy
-
requiresReply
- Overrides:
requiresReply
in classConsumerEndpointSpec<BarrierSpec,BarrierMessageHandler>
- Parameters:
requiresReply
- the requiresReply.- Returns:
- the endpoint spec.
- See Also:
AbstractReplyProducingMessageHandler.setRequiresReply(boolean)
-
sendTimeout
- Overrides:
sendTimeout
in classConsumerEndpointSpec<BarrierSpec,BarrierMessageHandler>
- Parameters:
sendTimeout
- the send timeout.- Returns:
- the endpoint spec.
- See Also:
AbstractMessageProducingHandler.setSendTimeout(long)
-
order
- Overrides:
order
in classConsumerEndpointSpec<BarrierSpec,BarrierMessageHandler>
- Parameters:
order
- the order.- Returns:
- the endpoint spec.
- See Also:
MessageHandlerSupport.setOrder(int)
-
async
Description copied from class:ConsumerEndpointSpec
Allow async replies. If the handler reply is aorg.springframework.util.concurrent.ListenableFuture
, send the output when it is satisfied rather than sending the future as the result. Ignored for handler return types other thanListenableFuture
.- Overrides:
async
in classConsumerEndpointSpec<BarrierSpec,BarrierMessageHandler>
- Parameters:
async
- true to allow.- Returns:
- the endpoint spec.
- See Also:
AbstractMessageProducingHandler.setAsync(boolean)
-
doGet
- Overrides:
doGet
in classConsumerEndpointSpec<BarrierSpec,BarrierMessageHandler>
-