Class SplitterEndpointSpec<S extends AbstractMessageSplitter>
java.lang.Object
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<SplitterEndpointSpec<S>,S>
org.springframework.integration.dsl.SplitterEndpointSpec<S>
- Type Parameters:
S
- the targetSplitterEndpointSpec
implementation type.
- All Implemented Interfaces:
DisposableBean
,FactoryBean<reactor.util.function.Tuple2<ConsumerEndpointFactoryBean,
,S>> InitializingBean
,Lifecycle
,Phased
,SmartLifecycle
,ComponentsRegistration
public class SplitterEndpointSpec<S extends AbstractMessageSplitter>
extends ConsumerEndpointSpec<SplitterEndpointSpec<S>,S>
A
ConsumerEndpointSpec
for a AbstractMessageSplitter
implementations.- Since:
- 5.0
- Author:
- Artem Bilan
-
Field Summary
Fields inherited from class org.springframework.integration.dsl.ConsumerEndpointSpec
adviceChain
Fields inherited from class org.springframework.integration.dsl.EndpointSpec
componentsToRegister, endpointFactoryBean, handler
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
-
Method Summary
Modifier and TypeMethodDescriptionapplySequence
(boolean applySequence) Set the applySequence flag to the specified value.delimiters
(String delimiters) Set delimiters to tokenize String values.discardChannel
(String discardChannelName) Specify a channel bean name where rejected Messages should be sent.discardChannel
(MessageChannel discardChannel) Specify a channel where rejected Messages should be sent.discardFlow
(IntegrationFlow discardFlow) Configure a subflow to run for discarded messages instead of adiscardChannel(MessageChannel)
.Methods inherited from class org.springframework.integration.dsl.ConsumerEndpointSpec
advice, async, autoStartup, customizeMonoReply, doGet, handleMessageAdvice, notPropagatedHeaders, order, phase, poller, reactive, reactive, requiresReply, role, sendTimeout, 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, afterPropertiesSet, destroy, get, getId, getObject, getObjectType, getPhase, 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
-
SplitterEndpointSpec
-
-
Method Details
-
applySequence
Set the applySequence flag to the specified value. Defaults totrue
.- Parameters:
applySequence
- the applySequence.- Returns:
- the endpoint spec.
- See Also:
-
delimiters
Set delimiters to tokenize String values. The default isnull
indicating that no tokenizing should occur. If delimiters are provided, they will be applied to any String payload. Only applied if providedsplitter
is instance ofDefaultMessageSplitter
.- Parameters:
delimiters
- The delimiters.- Returns:
- the endpoint spec.
- See Also:
-
discardChannel
Specify a channel where rejected Messages should be sent. If the discard channel is null (the default), rejected Messages will be dropped. A "Rejected Message" means that split function has returned an empty result (but not null): no items to iterate for sending.- Parameters:
discardChannel
- The discard channel.- Returns:
- the endpoint spec.
- Since:
- 5.2
- See Also:
-
discardChannel
Specify a channel bean name where rejected Messages should be sent. If the discard channel is null (the default), rejected Messages will be dropped. A "Rejected Message" means that split function has returned an empty result (but not null): no items to iterate for sending.- Parameters:
discardChannelName
- The discard channel bean name.- Returns:
- the endpoint spec.
- Since:
- 5.2
- See Also:
-
discardFlow
Configure a subflow to run for discarded messages instead of adiscardChannel(MessageChannel)
.- Parameters:
discardFlow
- the discard flow.- Returns:
- the endpoint spec.
- Since:
- 5.2
-