public class SenderWrapper extends SenderWrapperBase
ISenderWithParameters
HasStatistics.Action
senderWrapperProcessor
parameterNamesMustBeUnique, paramList
log
Constructor and Description |
---|
SenderWrapper() |
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. |
SenderResult |
doSendMessage(Message message,
PipeLineSession session) |
protected boolean |
isSenderConfigured() |
boolean |
isSynchronous()
When
true , the result of sendMessage is the reply of the request. |
void |
iterateOverStatistics(StatisticsKeeperIterationHandler hski,
Object data,
HasStatistics.Action action) |
void |
open()
This method will be called to start the sender.
|
getLogPrefix, sendMessage, setGetInputFromFixedValue, setGetInputFromSessionKey, setPreserveInput, setStoreInputInSessionKey, setStoreResultInSessionKey
addParameter, checkStringAttributeOrParameter, consumesSessionVariable, getParameterList, getParameterOverriddenAttributeValue, getParameterOverriddenAttributeValue, getParameterValueList
createBean, getName, setApplicationContext, setName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCache, setCache
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 isSynchronous()
ISender
true
, the result of sendMessage is the reply of the request.isSynchronous
in interface ISender
isSynchronous
in class SenderBase
Copyright © 2023 Frank!Framework. All rights reserved.