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, handlerFields inherited from class org.springframework.integration.dsl.IntegrationComponentSpec
PARSER, target -
Constructor Summary
Constructors Modifier Constructor Description protectedBarrierSpec(long timeout) -
Method Summary
Modifier and Type Method Description BarrierSpecasync(boolean async)Allow async replies.BarrierSpeccorrelationStrategy(CorrelationStrategy correlationStrategy)reactor.util.function.Tuple2<ConsumerEndpointFactoryBean,BarrierMessageHandler>doGet()BarrierSpecorder(int order)BarrierSpecoutputProcessor(MessageGroupProcessor outputProcessor)BarrierSpecrequiresReply(boolean requiresReply)BarrierSpecsendTimeout(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, transactionalMethods inherited from class org.springframework.integration.dsl.EndpointSpec
assertHandler, getComponentsToRegister, id, obtainInputChannelFromFlow, obtainInputChannelFromFlow, poller, pollerMethods inherited from class org.springframework.integration.dsl.IntegrationComponentSpec
_this, createInstance, destroyInstance, get, getId, getObjectType, getPhase, isAutoStartup, isRunning, start, stop, stopMethods 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:
requiresReplyin classConsumerEndpointSpec<BarrierSpec,BarrierMessageHandler>- Parameters:
requiresReply- the requiresReply.- Returns:
- the endpoint spec.
- See Also:
AbstractReplyProducingMessageHandler.setRequiresReply(boolean)
-
sendTimeout
- Overrides:
sendTimeoutin classConsumerEndpointSpec<BarrierSpec,BarrierMessageHandler>- Parameters:
sendTimeout- the send timeout.- Returns:
- the endpoint spec.
- See Also:
AbstractMessageProducingHandler.setSendTimeout(long)
-
order
- Overrides:
orderin classConsumerEndpointSpec<BarrierSpec,BarrierMessageHandler>- Parameters:
order- the order.- Returns:
- the endpoint spec.
- See Also:
MessageHandlerSupport.setOrder(int)
-
async
Description copied from class:ConsumerEndpointSpecAllow 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:
asyncin classConsumerEndpointSpec<BarrierSpec,BarrierMessageHandler>- Parameters:
async- true to allow.- Returns:
- the endpoint spec.
- See Also:
AbstractMessageProducingHandler.setAsync(boolean)
-
doGet
- Overrides:
doGetin classConsumerEndpointSpec<BarrierSpec,BarrierMessageHandler>
-