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> AdapterAware
,IConfigurable
,IConfigurationAware
,INamedObject
,IScopeProvider
,ISender
,ISenderWithParameters
,IWithParameters
,org.springframework.beans.factory.Aware
,org.springframework.context.ApplicationContextAware
- 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
adapter, configurationMetrics, senderWrapperProcessor
Fields inherited from class org.frankframework.senders.AbstractSenderWithParameters
parameterNamesMustBeUnique, paramList
Fields inherited from class org.frankframework.senders.AbstractSender
log
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
one or more specifications of senders that will be executed one after another.void
configure()
is called once at startup of the framework in the configure method of the owner of this sender.boolean
consumesSessionVariable
(String sessionKey) returnstrue
if the sender or one of its children use the named session variable.doSendMessage
(Message message, PipeLineSession session) protected io.micrometer.core.instrument.DistributionSummary
getStatisticsKeeper
(ISender sender) protected boolean
boolean
Whentrue
, the result of sendMessage is the reply of the request.final void
Deprecated.void
setSynchronous
(boolean synchronous) void
start()
This method will be called to start the sender.void
stop()
Stop/close the sender and deallocate resources.Methods inherited from class org.frankframework.senders.AbstractSenderWrapper
getCache, getGetInputFromFixedValue, getGetInputFromSessionKey, getStoreInputInSessionKey, getStoreResultInSessionKey, isPreserveInput, sendMessage, setAdapter, setCache, setConfigurationMetrics, setGetInputFromFixedValue, setGetInputFromSessionKey, setPreserveInput, setSenderWrapperProcessor, setStoreInputInSessionKey, setStoreResultInSessionKey
Methods inherited from class org.frankframework.senders.AbstractSenderWithParameters
addParameter, checkStringAttributeOrParameter, getParameterList, getParameterOverriddenAttributeValue, getParameterOverriddenAttributeValue, getParameterValueList
Methods inherited from class org.frankframework.senders.AbstractSender
createBean, getApplicationContext, getConfigurationClassLoader, getLogPrefix, getName, setApplicationContext, setName
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.context.ApplicationContextAware
setApplicationContext
Methods inherited from interface org.frankframework.core.IConfigurationAware
getApplicationContext, getName
Methods inherited from interface org.frankframework.core.INamedObject
getName, setName
Methods inherited from interface org.frankframework.core.IScopeProvider
getConfigurationClassLoader
Methods inherited from interface org.frankframework.core.ISender
sendMessageOrThrow
-
Constructor Details
-
SenderSeries
public SenderSeries()
-
-
Method Details
-
isSenderConfigured
protected boolean isSenderConfigured()- Specified by:
isSenderConfigured
in classAbstractSenderWrapper
-
configure
Description copied from interface:ISender
configure()
is called once at startup of the framework in the configure method of the owner of this sender. Purpose of this method is to check whether the static configuration of the sender is correct. As much as possible class-instantiating should take place in theconfigure()
oropen()
method, to improve performance.- Specified by:
configure
in interfaceIConfigurable
- Specified by:
configure
in interfaceISender
- Overrides:
configure
in classAbstractSenderWrapper
- Throws:
ConfigurationException
-
start
public void start()Description copied from interface:ISender
This 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:
start
in interfaceISender
- Overrides:
start
in classAbstractSenderWrapper
-
stop
public void stop()Description copied from interface:ISender
Stop/close the sender and deallocate resources.- Specified by:
stop
in interfaceISender
- Overrides:
stop
in classAbstractSenderWrapper
-
doSendMessage
public SenderResult doSendMessage(Message message, PipeLineSession session) throws SenderException, TimeoutException - Specified by:
doSendMessage
in classAbstractSenderWrapper
- Throws:
SenderException
TimeoutException
-
consumesSessionVariable
Description copied from interface:ISender
returnstrue
if 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:
consumesSessionVariable
in interfaceISender
- Specified by:
consumesSessionVariable
in interfaceISenderWithParameters
- Overrides:
consumesSessionVariable
in 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
-
isSynchronous
public boolean isSynchronous()Description copied from interface:ISender
Whentrue
, the result of sendMessage is the reply of the request. -
setSynchronous
public void setSynchronous(boolean synchronous)
-