C
- Collector instanceP
- parts that are added to the collectorpublic abstract class CollectorPipeBase<C extends ICollector<P>,P> extends FixedForwardPipe
Modifier and Type | Class and Description |
---|---|
static class |
CollectorPipeBase.Action |
parameterNamesMustBeUnique
log
LONG_DURATION_MONITORING_EVENT, MESSAGE_SIZE_MONITORING_EVENT, PIPE_EXCEPTION_MONITORING_EVENT
Constructor and Description |
---|
CollectorPipeBase() |
Modifier and Type | Method and Description |
---|---|
protected void |
addPartToCollection(Collection<C,P> collection,
Message input,
PipeLineSession session,
ParameterValueList pvl) |
protected Message |
closeCollector(Collection<C,P> collection,
PipeLineSession session) |
void |
configure()
checks for correct configuration of forward
|
protected abstract C |
createCollector(Message input,
PipeLineSession session) |
protected Message |
doAction(CollectorPipeBase.Action action,
Message input,
PipeLineSession session) |
PipeRunResult |
doPipe(Message input,
PipeLineSession session)
This is where the action takes place.
|
protected Collection<C,P> |
getCollection(PipeLineSession session) |
protected ParameterValueList |
getParameterValueList(Message input,
PipeLineSession session) |
getParameterValue, setIfParam, setIfValue, setOnlyIfSessionKey, setOnlyIfValue, setSkipOnEmptyInput, setUnlessSessionKey, setUnlessValue, skipPipe
addParameter, consumesSessionVariable, createBean, findForward, getAdapter, getEventSourceName, getForwards, getInSizeStatDummyObject, getOutSizeStatDummyObject, getParameterList, hasSizeStatistics, registerEvent, registerForward, setApplicationContext, setChompCharSize, setDurationThreshold, setElementToMove, setElementToMoveChain, setElementToMoveSessionKey, setEmptyInputReplacement, setGetInputFromFixedValue, setGetInputFromSessionKey, setHideRegex, setLocker, setLogIntermediaryResults, setMaxThreads, setName, setPreserveInput, setRemoveCompactMsgNamespaces, setRestoreMovedElements, setSecLogSessionKeys, setSizeStatistics, setStoreResultInSessionKey, setWriteToSecLog, start, stop, throwEvent
configureTransactionAttributes, isTransacted, isTransacted, setTransacted, setTransactionTimeout
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getChompCharSize, getDurationThreshold, getElementToMove, getElementToMoveChain, getElementToMoveSessionKey, getEmptyInputReplacement, getGetInputFromFixedValue, getGetInputFromSessionKey, getLocker, getSecLogSessionKeys, getStoreResultInSessionKey, isPreserveInput, isRemoveCompactMsgNamespaces, isRestoreMovedElements, isWriteToSecLog, setPipeLine, throwEvent
getMaxThreads
getName
getApplicationContext, getName
getConfigurationClassLoader
getName
getTransactionAttribute, getTransactionTimeout, getTxDef, setTransactionAttribute
public void configure() throws ConfigurationException
FixedForwardPipe
configure
in interface IConfigurable
configure
in interface IPipe
configure
in class FixedForwardPipe
ConfigurationException
public PipeRunResult doPipe(Message input, PipeLineSession session) throws PipeRunException
IPipe
FixedResultPipe
, the Pipe
can schedule the input to be closed at session exit, by calling Message.closeOnCloseOf(PipeLineSession, String)
This allows the previous Pipe to release any resources (e.g. connections) that it might have kept open
until the message was consumed. Doing so avoids connections leaking from pools, while it enables
efficient streaming processing of data while it is being read from a stream.PipeRunException
@Nullable protected Collection<C,P> getCollection(PipeLineSession session) throws CollectionException
CollectionException
protected ParameterValueList getParameterValueList(Message input, PipeLineSession session) throws CollectionException
CollectionException
@Nullable protected final Message doAction(CollectorPipeBase.Action action, Message input, PipeLineSession session) throws CollectionException, PipeRunException
CollectionException
PipeRunException
protected void addPartToCollection(Collection<C,P> collection, Message input, PipeLineSession session, ParameterValueList pvl) throws CollectionException
CollectionException
protected abstract C createCollector(Message input, PipeLineSession session) throws CollectionException
CollectionException
protected Message closeCollector(Collection<C,P> collection, PipeLineSession session) throws CollectionException
CollectionException
Copyright © 2023 Frank!Framework. All rights reserved.