Package org.frankframework.senders
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 org.frankframework.senders.AbstractSenderWrapper
configurationMetrics, senderWrapperProcessorFields inherited from class org.frankframework.senders.AbstractSenderWithParameters
parameterNamesMustBeUnique, paramListFields inherited from class org.frankframework.senders.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(Message input, PipeLineSession session) protected 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 org.frankframework.senders.AbstractSenderWrapper
sendMessage, setGetInputFromFixedValue, setGetInputFromSessionKey, setName, setPreserveInput, setStoreInputInSessionKey, setStoreResultInSessionKeyMethods inherited from class org.frankframework.senders.AbstractSenderWithParameters
addParameter, checkStringAttributeOrParameter, getParameterList, getParameterOverriddenAttributeValue, getParameterOverriddenAttributeValue, getParameterValueListMethods inherited from class org.frankframework.senders.AbstractSender
createBean, getLogPrefix, getName, isRunning, setApplicationContextMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.context.ApplicationContextAware
setApplicationContextMethods inherited from interface org.frankframework.core.FrankElement
addConfigWarningMethods inherited from interface org.frankframework.core.HasApplicationContext
getApplicationContext, getConfigurationClassLoaderMethods inherited from interface org.frankframework.cache.ICacheEnabled
getCache, setCacheMethods inherited from interface org.frankframework.core.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(Message input, 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
@Nonnull protected io.micrometer.core.instrument.DistributionSummary getStatisticsKeeper(ISender sender) -
getSenders
-