@PublicApi
public interface MessageValidator
| Modifier and Type | Method and Description |
|---|---|
void |
handleInvalidMessage(MessageContext messageContext,
Map<String,String> messageAttributes)
handleInvalidMessage is called for any message that fails
isValid. |
boolean |
isValid(MessageContext messageContext,
Map<String,String> messageAttributes)
Is the message valid? If not then the message will not be processed by its message runner, and handleInvalidMessage will be called.
|
boolean isValid(MessageContext messageContext, Map<String,String> messageAttributes)
messageContext - the message contextmessageAttributes - an immutable map of the message's attributesvoid handleInvalidMessage(MessageContext messageContext, Map<String,String> messageAttributes)
isValid.messageContext - the message contextmessageAttributes - an immutable map of the message's attributesCopyright © 2017 Atlassian. All rights reserved.