Interface TemporaryMessageProcessor
-
public interface TemporaryMessageProcessorA processor of aTemporaryMessagewhich is invoked during the async handling of the messages.- Author:
- Filip Hrisafov
-
-
Field Summary
Fields Modifier and Type Field Description static StringSTATUS_PASSEDStatus indicating that the processing has passed.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TemporaryMessageProcessResultprocess(TemporaryMessage temporaryMessage)Process the temporary message.
-
-
-
Field Detail
-
STATUS_PASSED
static final String STATUS_PASSED
Status indicating that the processing has passed.- See Also:
- Constant Field Values
-
-
Method Detail
-
process
TemporaryMessageProcessResult process(TemporaryMessage temporaryMessage)
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 notvalidthen 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
-
-