Class MessageVanishedEvent

java.lang.Object
java.util.EventObject
jakarta.mail.event.MailEvent
jakarta.mail.event.MessageCountEvent
com.sun.mail.imap.MessageVanishedEvent
All Implemented Interfaces:
Serializable

public class MessageVanishedEvent extends jakarta.mail.event.MessageCountEvent
This class provides notification of messages that have been removed since the folder was last synchronized.
Since:
JavaMail 1.5.1
Author:
Bill Shannon
See Also:
  • Field Summary

    Fields inherited from class jakarta.mail.event.MessageCountEvent

    ADDED, msgs, removed, REMOVED, type

    Fields inherited from class java.util.EventObject

    source
  • Constructor Summary

    Constructors
    Constructor
    Description
    MessageVanishedEvent(jakarta.mail.Folder folder, long[] uids)
    Constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    long[]
    Return the UIDs for this event.

    Methods inherited from class jakarta.mail.event.MessageCountEvent

    dispatch, getMessages, getType, isRemoved

    Methods inherited from class java.util.EventObject

    getSource, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • MessageVanishedEvent

      public MessageVanishedEvent(jakarta.mail.Folder folder, long[] uids)
      Constructor.
      Parameters:
      folder - the containing folder
      uids - the UIDs for the vanished messages
  • Method Details

    • getUIDs

      public long[] getUIDs()
      Return the UIDs for this event.
      Returns:
      the UIDs