@PublicApi public interface MessageHandlerExecutionMonitor extends MessageHandlerErrorCollector
You should not need to implement this interface (unless for test purposes).
Modifier and Type | Method and Description |
---|---|
void |
markMessageForDeletion(String reason)
Mark a message for deletion.
|
void |
messageRejected(javax.mail.Message message,
String reason)
Reports the rejection of the message
|
void |
nextMessage(javax.mail.Message message)
Reports that given message is about to be dispatched to the message handler.
|
void |
setNumMessages(int count)
Report the number of messages ready for processing by the handler in the current run
|
void setNumMessages(int count)
count
- number of messages ready for processing by the handler in the current runvoid messageRejected(javax.mail.Message message, String reason)
message
- the message which has been rejected (should be the one reported before with nextMessage() method.reason
- the reason of the rejection (may be displayed in the web UI, so translated messages
are desirable here)void nextMessage(javax.mail.Message message)
message
- the message which is about to be dispatched to the handler.@ExperimentalApi void markMessageForDeletion(String reason)
reason
- the reason for the rejection. This will also be used when forwarding the email.Copyright © 2002-2016 Atlassian. All Rights Reserved.