...
GetMessagesToPoll
defines a call to poll for messages. This can be on the file system, run a query to a database, call a SharePoint site, … any target to poll for messagesMessageReceived
is called for each message that has been retrieved. This method has the original callback which was given to the receiver by theStartReceiving
method. In this method, the Entity must be transformed to aReceivedMessage
instance. and invoke the callback on it so it can be processed by the agent.
HandleMessageException
is called when an exception is thrown while handling the polled message (this exception is probably thrown somewhere in the agent and has been catched by thePollingTemplate
).ReleasePendingItems
defines a call that specifies what to do with remaining messages when the Receiver is canceled.