Package org.frankframework.senders
Class ParallelSenders
java.lang.Object
org.frankframework.senders.AbstractSender
org.frankframework.senders.AbstractSenderWithParameters
org.frankframework.senders.AbstractSenderWrapper
org.frankframework.senders.SenderSeries
org.frankframework.senders.ParallelSenders
- 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:
ShadowSender
Collection of Senders, that are executed all at the same time.
- 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.voidConfigure this component.protected org.springframework.core.task.TaskExecutordoSendMessage(Message message, PipeLineSession session) voidsetMaxConcurrentThreads(int maxThreads) Set the upper limit to the amount of concurrent threads that can be run simultaneously.voidsetSynchronous(boolean value) Methods inherited from class org.frankframework.senders.SenderSeries
consumesSessionVariable, getSenders, getStatisticsKeeper, isSenderConfigured, setSender, start, stopMethods 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
-
ParallelSenders
public ParallelSenders()
-
-
Method Details
-
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 classSenderSeries- Throws:
ConfigurationException- in case it was not able to configure the component.
-
doSendMessage
- Overrides:
doSendMessagein classSenderSeries- Throws:
SenderException
-
setSynchronous
public void setSynchronous(boolean value) -
createTaskExecutor
protected org.springframework.core.task.TaskExecutor createTaskExecutor() -
addSender
one or more specifications of senders. Each will receive the same input message, to be processed in parallel- Overrides:
addSenderin classSenderSeries
-
setMaxConcurrentThreads
public void setMaxConcurrentThreads(int maxThreads) Set the upper limit to the amount of concurrent threads that can be run simultaneously. Use 0 to disable.- Default value
- 0
-