public abstract class CollectorSender<E extends ICollectingElement<C>,C extends ICollector<E>> extends StreamingSenderBase implements ICollectingElement<C>
CollectorPipe
with action=OPEN
- Author:
- Gerrit van Brakel
- Parameters
- all parameters are handled by the collection.
parameterNamesMustBeUnique, paramList
log
Constructor and Description |
---|
CollectorSender() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canProvideOutputStream()
returns true when there are no parameters that require the input value or context
(or other side effects inhibiting providing an outputstream, to be determined by descendants)
|
void |
configure()
configure() is called once at startup of the framework in the configure method of the owner of this sender. |
CollectionActor.Action |
getAction() |
String |
getCollection() |
MessageOutputStream |
provideOutputStream(PipeLineSession session,
IForwardTarget next)
return a
MessageOutputStream that can be used to write a message to, that then will be processed in a streaming way. |
PipeRunResult |
sendMessage(Message message,
PipeLineSession session,
IForwardTarget next) |
void |
setAction(CollectionActor.Action action) |
void |
setCollection(String collection) |
sendMessage, supportsOutputStreamPassThrough
addParameter, checkStringAttributeOrParameter, consumesSessionVariable, getParameterList, getParameterOverriddenAttributeValue, getParameterOverriddenAttributeValue, getParameterValueList
close, createBean, getLogPrefix, getName, isSynchronous, open, setApplicationContext, setName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
openCollection
consumesSessionVariable
close, isSynchronous, open, sendMessageOrThrow
getName, setName
getApplicationContext, getName
getConfigurationClassLoader
setApplicationContext
addParameter, getParameterList
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 StreamingSenderBase
ConfigurationException
public PipeRunResult sendMessage(Message message, PipeLineSession session, IForwardTarget next) throws SenderException, TimeoutException
sendMessage
in interface IStreamingSender
SenderException
TimeoutException
protected boolean canProvideOutputStream()
StreamingSenderBase
canProvideOutputStream
in class StreamingSenderBase
public MessageOutputStream provideOutputStream(PipeLineSession session, IForwardTarget next) throws StreamingException
IOutputStreamingSupport
MessageOutputStream
that can be used to write a message to, that then will be processed in a streaming way.
If a target MessageOutputStream is required to stream output to, this can be obtained from next
, if specified.
If the implementor of this method is a pipe, and it is the last one in the chain of streaming pipes, it must provide the appropriate
forward in the provide MessageOutputStream.
If the class cannot provide an outputstream, it must return null.
If the provider of an outputstream is a pipe itself, it must provide a proper pipeforward in the provided outputstreamprovideOutputStream
in interface IOutputStreamingSupport
StreamingException
public void setAction(CollectionActor.Action action)
public CollectionActor.Action getAction()
public void setCollection(String collection)
public String getCollection()
Copyright © 2023 Frank!Framework. All rights reserved.