H
- something shared for sending messages in a block, like a connection.public interface IBlockEnabledSender<H> extends ISenderWithParameters
Modifier and Type | Method and Description |
---|---|
void |
closeBlock(H blockHandle,
PipeLineSession session)
close the resource that is opened by
openBlock(PipeLineSession) . |
H |
openBlock(PipeLineSession session)
open a resource that can be used multiple times when
sendMessage(Object, Message, PipeLineSession) is called. |
SenderResult |
sendMessage(H blockHandle,
Message message,
PipeLineSession session) |
consumesSessionVariable
close, configure, isSynchronous, open, sendMessage, sendMessageOrThrow
getName, setName
getApplicationContext, getName
getConfigurationClassLoader
setApplicationContext
addParameter, getParameterList
H openBlock(PipeLineSession session) throws SenderException, TimeoutException
sendMessage(Object, Message, PipeLineSession)
is called.SenderException
TimeoutException
void closeBlock(H blockHandle, PipeLineSession session) throws SenderException
openBlock(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.SenderException
SenderResult sendMessage(H blockHandle, Message message, PipeLineSession session) throws SenderException, TimeoutException
SenderException
TimeoutException
Copyright © 2023 Frank!Framework. All rights reserved.