Interface TemporaryMessageProcessor
public interface TemporaryMessageProcessor
A processor of a
TemporaryMessage
which is invoked
during the async handling of the messages.- Author:
- Filip Hrisafov
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
Status indicating that the processing has passed. -
Method Summary
Modifier and TypeMethodDescriptionprocess
(TemporaryMessage temporaryMessage) Process the temporary message.
-
Field Details
-
STATUS_PASSED
Status indicating that the processing has passed.- See Also:
-
-
Method Details
-
process
Process the temporary message. The processor should return a processing result that indicates whether the processing has been validated and the reason of the validation.There can be multiple registered processor that process a
TemporaryMessage
. If one processor returns a status that is notvalid
then the processing stops and the result is handed to theTemporaryMessageHandler
.Once all
TemporaryMessageProcessor
(s) have run then the last processing result would be returned to theTemporaryMessageHandler
.- Parameters:
temporaryMessage
- that temporary message that needs to be processed- Returns:
- the process result of the processor
-