Package rs.mail.queue
Interface MailQueueListener
- All Known Implementing Classes:
MailQueueAdapter
public interface MailQueueListener
A listener that gets informed about events in a mail queue.
- Author:
- ralph
-
Method Summary
Modifier and TypeMethodDescriptionvoidInforms that a message could not be sent.voidInforms that a message was added to the queue.voidInforms that the message is now being sent.voidInforms that a message was sent successfully.
-
Method Details
-
onQueued
Informs that a message was added to the queue.- Parameters:
referenceId- - the reference ID of the message
-
onSending
Informs that the message is now being sent.- Parameters:
referenceId- - the reference ID of the message
-
onSent
Informs that a message was sent successfully.- Parameters:
referenceId- - the reference ID of the message
-
onFailed
Informs that a message could not be sent.- Parameters:
referenceId- - the reference ID of the messagereason- - reason string why it failedfailedCount- - the number of failed attempts
-