public class SenderSeries extends SenderWrapperBase
HasStatistics.Action
senderWrapperProcessor
parameterNamesMustBeUnique, paramList
log
Constructor and Description |
---|
SenderSeries() |
Modifier and Type | Method and Description |
---|---|
void |
close()
Stop/close the sender and deallocate resources.
|
void |
configure()
configure() is called once at startup of the framework in the configure method of the owner of this sender. |
boolean |
consumesSessionVariable(String sessionKey)
returns
true if the sender or one of its children use the named session variable. |
SenderResult |
doSendMessage(Message message,
PipeLineSession session) |
protected Iterable<ISender> |
getSenders() |
protected StatisticsKeeper |
getStatisticsKeeper(ISender sender) |
protected boolean |
isSenderConfigured() |
void |
iterateOverStatistics(StatisticsKeeperIterationHandler hski,
Object data,
HasStatistics.Action action) |
void |
open()
This method will be called to start the sender.
|
void |
registerSender(ISender sender)
one or more specifications of senders that will be executed one after another.
|
void |
setSender(ISender sender)
Deprecated.
|
getLogPrefix, sendMessage, setGetInputFromFixedValue, setGetInputFromSessionKey, setPreserveInput, setStoreInputInSessionKey, setStoreResultInSessionKey
addParameter, checkStringAttributeOrParameter, getParameterList, getParameterOverriddenAttributeValue, getParameterOverriddenAttributeValue, getParameterValueList
createBean, getName, isSynchronous, setApplicationContext, setName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCache, setCache
isSynchronous, sendMessageOrThrow
getName, setName
getApplicationContext, getName
getConfigurationClassLoader
protected boolean isSenderConfigured()
isSenderConfigured
in class SenderWrapperBase
public void configure() throws ConfigurationException
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 the configure()
or open()
method, to improve performance.configure
in interface IConfigurable
configure
in interface ISender
configure
in class SenderWrapperBase
ConfigurationException
public void open() throws SenderException
ISender
sendMessage()
method.open
in interface ISender
open
in class SenderWrapperBase
SenderException
public void close() throws SenderException
ISender
close
in interface ISender
close
in class SenderWrapperBase
SenderException
public SenderResult doSendMessage(Message message, PipeLineSession session) throws SenderException, TimeoutException
doSendMessage
in class SenderWrapperBase
SenderException
TimeoutException
public void iterateOverStatistics(StatisticsKeeperIterationHandler hski, Object data, HasStatistics.Action action) throws SenderException
SenderException
public boolean consumesSessionVariable(String sessionKey)
ISender
true
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.consumesSessionVariable
in interface ISender
consumesSessionVariable
in interface ISenderWithParameters
consumesSessionVariable
in class SenderWithParametersBase
@Deprecated public final void setSender(ISender sender)
public void registerSender(ISender sender)
protected StatisticsKeeper getStatisticsKeeper(ISender sender)
Copyright © 2023 Frank!Framework. All rights reserved.