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 Type
    Method
    Description
    void
    onFailed(String referenceId, int failedCount, String reason)
    Informs that a message could not be sent.
    void
    onQueued(String referenceId)
    Informs that a message was added to the queue.
    void
    onSending(String referenceId)
    Informs that the message is now being sent.
    void
    onSent(String referenceId)
    Informs that a message was sent successfully.
  • Method Details

    • onQueued

      void onQueued(String referenceId)
      Informs that a message was added to the queue.
      Parameters:
      referenceId - - the reference ID of the message
    • onSending

      void onSending(String referenceId)
      Informs that the message is now being sent.
      Parameters:
      referenceId - - the reference ID of the message
    • onSent

      void onSent(String referenceId)
      Informs that a message was sent successfully.
      Parameters:
      referenceId - - the reference ID of the message
    • onFailed

      void onFailed(String referenceId, int failedCount, String reason)
      Informs that a message could not be sent.
      Parameters:
      referenceId - - the reference ID of the message
      reason - - reason string why it failed
      failedCount - - the number of failed attempts