public abstract class AbstractMessageSequenceSplitter extends AbstractInterceptingMessageProcessor implements MuleContextAware
Message splitter, that converts its payload in a MessageSequence, and process each
element of it. Implementations must implement splitMessageIntoSequence(Event) and determine how the message is split.
EIP Reference: http://www .eaipatterns.com/Sequencer.html
AbstractSplitterReactiveProcessor.ProcessingType| Modifier and Type | Field and Description |
|---|---|
protected int |
batchSize |
protected String |
counterVariableName |
protected RouterResultsHandler |
resultsHandler |
flowConstruct, logger, muleContext, next| Constructor and Description |
|---|
AbstractMessageSequenceSplitter() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
isSplitRequired(Event event) |
Event |
process(Event event)
Invokes the MessageProcessor.
|
protected List<Event> |
processParts(MessageSequence<?> seq,
Event originalEvent) |
protected void |
propagateFlowVars(Event previousResult,
Event.Builder builder) |
protected Set<String> |
resolvePropagatedFlowVars(Event lastResult) |
void |
setBatchSize(int batchSize)
Split the elements in groups of the specified size
|
void |
setCounterVariableName(String counterVariableName) |
protected abstract MessageSequence<?> |
splitMessageIntoSequence(Event event)
Converts the event into a
MessageSequence that will retrieve each of the event elements |
applyNext, getListener, getMuleContext, isEventValid, processNext, setFlowConstruct, setListener, setMuleContext, toStringgetAnnotation, getAnnotations, getLocation, setAnnotationsclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitsetMuleContextsetListenergetProcessingTypeprotected RouterResultsHandler resultsHandler
protected int batchSize
protected String counterVariableName
public final Event process(Event event) throws org.mule.runtime.api.exception.MuleException
Processorprotected boolean isSplitRequired(Event event)
protected abstract MessageSequence<?> splitMessageIntoSequence(Event event) throws org.mule.runtime.api.exception.MuleException
MessageSequence that will retrieve each of the event elementsevent - the event to splitorg.mule.runtime.api.exception.MuleExceptionprotected List<Event> processParts(MessageSequence<?> seq, Event originalEvent) throws org.mule.runtime.api.exception.MuleException
org.mule.runtime.api.exception.MuleExceptionprotected void propagateFlowVars(Event previousResult, Event.Builder builder)
public void setBatchSize(int batchSize)
public void setCounterVariableName(String counterVariableName)
Copyright © 2003–2017 MuleSoft, Inc.. All rights reserved.