Class MessageDeliveredEvent

  • All Implemented Interfaces:
    Serializable

    public final class MessageDeliveredEvent
    extends EventObject
    This event notifies listeners, when a message has been successfully delivered.
    See Also:
    Serialized Form
    • Method Detail

      • getMessageId

        public final String getMessageId()
        Gets the message id of the successfully delivered message.
        Returns:
        The message id.
      • getDeliveryDate

        public final Instant getDeliveryDate()
        Gets the date, when the original message has been delivered, i.e. when the delivery receipt has been sent.
        Returns:
        The delivery date.
      • getFrom

        public final Jid getFrom()
        Gets the sender of the receipt. Usually this is the receiver of the original message, which requested the receipt and which can be referenced via the id. But in the context of Multi-User Chat (XEP-0045) or Multi Cast (XEP-0033) this is not the case.s
        Returns:
        The sender.