Class SenderSeries
java.lang.Object
org.frankframework.senders.AbstractSender
org.frankframework.senders.AbstractSenderWithParameters
org.frankframework.senders.AbstractSenderWrapper
org.frankframework.senders.SenderSeries
- All Implemented Interfaces:
ICacheEnabled<String,String>, FrankElement, HasApplicationContext, HasName, IConfigurable, IScopeProvider, ISender, ISenderWithParameters, IWithParameters, NameAware, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware, org.springframework.context.Lifecycle
- Direct Known Subclasses:
JavascriptSender, ParallelSenders
Series of Senders, that are executed one after another.
- Since:
- 4.9
- Author:
- Gerrit van Brakel
-
Field Summary
Fields inherited from class AbstractSenderWrapper
configurationMetrics, senderWrapperProcessorFields inherited from class AbstractSenderWithParameters
parameterNamesMustBeUnique, paramListFields inherited from class AbstractSender
log -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidone or more specifications of senders that will be executed one after another.voidConfigure this component.booleanconsumesSessionVariable(String sessionKey) returnstrueif the sender or one of its children use the named session variable.doSendMessage(@NonNull Message input, @NonNull PipeLineSession session) protected @NonNull io.micrometer.core.instrument.DistributionSummarygetStatisticsKeeper(ISender sender) protected booleanfinal voidDeprecated.voidstart()This method will be called to start the sender.voidstop()Stop/close the sender and deallocate resources.Methods inherited from class AbstractSenderWrapper
sendMessage, setGetInputFromFixedValue, setGetInputFromSessionKey, setName, setPreserveInput, setStoreInputInSessionKey, setStoreResultInSessionKeyMethods inherited from class AbstractSenderWithParameters
addParameter, checkStringAttributeOrParameter, getParameterList, getParameterOverriddenAttributeValue, getParameterOverriddenAttributeValue, getParameterValueListMethods inherited from class AbstractSender
createBean, getLogPrefix, getName, isRunning, setApplicationContextMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.context.ApplicationContextAware
setApplicationContextMethods inherited from interface FrankElement
addConfigWarningMethods inherited from interface HasApplicationContext
getApplicationContext, getConfigurationClassLoaderMethods inherited from interface ICacheEnabled
getCache, setCacheMethods inherited from interface ISender
isSynchronous, sendMessageOrThrow
-
Constructor Details
-
SenderSeries
public SenderSeries()
-
-
Method Details
-
isSenderConfigured
protected boolean isSenderConfigured()- Specified by:
isSenderConfiguredin classAbstractSenderWrapper
-
configure
Description copied from interface:IConfigurableConfigure this component.configure()is called once at startup of the framework in the configure method of the owner of thisIConfigurable. Purpose of this method is to check whether the static configuration of the object is correct. As much as possible class-instantiating should take place in theconfigure(), to improve performance.In the case of a container, this will propagate the configure signal to all components that apply.
- Specified by:
configurein interfaceIConfigurable- Overrides:
configurein classAbstractSenderWrapper- Throws:
ConfigurationException- in case it was not able to configure the component.
-
start
public void start()Description copied from interface:ISenderThis method will be called to start the sender. After this method is called the sendMessage method may be called. Purpose of this method is to reduce creating connections to databases etc. in thesendMessage()method.- Specified by:
startin interfaceISender- Specified by:
startin interfaceorg.springframework.context.Lifecycle- Overrides:
startin classAbstractSenderWrapper
-
stop
public void stop()Description copied from interface:ISenderStop/close the sender and deallocate resources.- Specified by:
stopin interfaceISender- Specified by:
stopin interfaceorg.springframework.context.Lifecycle- Overrides:
stopin classAbstractSenderWrapper
-
doSendMessage
public SenderResult doSendMessage(@NonNull Message input, @NonNull PipeLineSession session) throws SenderException, TimeoutException - Specified by:
doSendMessagein classAbstractSenderWrapper- Throws:
SenderExceptionTimeoutException
-
consumesSessionVariable
Description copied from interface:ISenderreturnstrueif the sender or one of its children use the named session variable. Callers can use this to determine if a message needs to be preserved.- Specified by:
consumesSessionVariablein interfaceISender- Specified by:
consumesSessionVariablein interfaceISenderWithParameters- Overrides:
consumesSessionVariablein classAbstractSenderWithParameters
-
setSender
Deprecated. -
addSender
one or more specifications of senders that will be executed one after another. Each sender will get the result of the preceding one as input. -
getStatisticsKeeper
protected @NonNull io.micrometer.core.instrument.DistributionSummary getStatisticsKeeper(ISender sender) -
getSenders
-