Package org.frankframework.core
Interface IBlockEnabledSender<H>
- Type Parameters:
H- something shared for sending messages in a block, like a connection.
- All Superinterfaces:
org.springframework.context.ApplicationContextAware,org.springframework.beans.factory.Aware,FrankElement,HasApplicationContext,HasName,IConfigurable,IScopeProvider,ISender,ISenderWithParameters,IWithParameters,NameAware
- All Known Implementing Classes:
AbstractBlockEnabledSender,AbstractJdbcQuerySender,AbstractJdbcSender,DirectQuerySender,FixedQuerySender,JdbcIteratingPipeBase.MixedQuerySender,ResultSet2FileSender,StoredProcedureQuerySender,XmlQuerySender
Allows to leverage sending messages in blocks.
-
Method Summary
Modifier and TypeMethodDescriptionvoidcloseBlock(H blockHandle, PipeLineSession session) close the resource that is opened byopenBlock(PipeLineSession).openBlock(PipeLineSession session) open a resource that can be used multiple times whensendMessage(Object, Message, PipeLineSession)is called.sendMessage(H blockHandle, Message message, PipeLineSession session) Methods 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.core.IConfigurable
configureMethods inherited from interface org.frankframework.core.ISender
isSynchronous, sendMessage, sendMessageOrThrow, start, stopMethods inherited from interface org.frankframework.core.ISenderWithParameters
consumesSessionVariableMethods inherited from interface org.frankframework.core.IWithParameters
addParameter, getParameterList
-
Method Details
-
openBlock
open a resource that can be used multiple times whensendMessage(Object, Message, PipeLineSession)is called.- Throws:
SenderExceptionTimeoutException
-
closeBlock
close the resource that is opened byopenBlock(PipeLineSession). It is important that this method is always called after processing with the blockHandle ends. It should effectively be called in a finally clause of a try around the openBlock.- Throws:
SenderException
-
sendMessage
SenderResult sendMessage(H blockHandle, Message message, PipeLineSession session) throws SenderException, TimeoutException - Throws:
SenderExceptionTimeoutException
-