|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@PublicApi public interface MessageHandlerExecutionMonitor
This is extension to MessageHandlerErrorCollector interface for with a few reporting methods around Messages. You should not need to implement this interface (unless for test purposes).
Method Summary | |
---|---|
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 |
Methods inherited from interface com.atlassian.jira.service.util.handler.MessageHandlerErrorCollector |
---|
error, error, info, info, warning, warning |
Method Detail |
---|
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |