Interface TemporaryMessageHandler
-
- All Known Implementing Classes:
DefaultTemporaryMessageHandler
public interface TemporaryMessageHandlerA handler of aTemporaryMessageafter allTemporaryMessageProcessor(s) have run.The handler is responsible for moving the temporary message to the message table, posting errors to the conversation etc.
- Author:
- Filip Hrisafov
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidpostProcess(TemporaryMessage temporaryMessage, TemporaryMessageProcessResult processResult)Post process the temporary message with the result.
-
-
-
Method Detail
-
postProcess
void postProcess(TemporaryMessage temporaryMessage, TemporaryMessageProcessResult processResult)
Post process the temporary message with the result.Post processing usually means that if the processing status is
validto post the the temporary message to an external system and depending on the system to post it to the conversation.In case the processing status is not
validan error message can be sent to the conversation, or something similar.- Parameters:
temporaryMessage- the temporary message that should be handledprocessResult- the processing result from theTemporaryMessageProcessor
-
-