Name
MessageCountEvent
Synopsis
The MessageCountEvent
class is used to notify clients of
changes to the number of messages contained in a folder. The speed with which
changes in the Folder
contents trigger this event varies
depending on protocol and implementation.
public class MessageCountEvent extends MailEvent { // Public Constructors public MessageCountEvent(Folder folder, int type, boolean removed, javax.mail.Message[] msgs); // Public Constants public static final int ADDED; // =1 public static final int REMOVED; // =2 // Public Instance Methods public javax.mail.Message[] getMessages(); public int getType(); public boolean isRemoved(); // Public Methods Overriding MailEvent public void dispatch( Object listener); // Protected Instance Fields protected transient javax.mail.Message[] msgs; protected boolean removed; protected int type; }
Passed To
MessageCountAdapter.{messagesAdded()
, messagesRemoved()}
, MessageCountListener.{messagesAdded()
, messagesRemoved()}
Get Java Enterprise in a Nutshell, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.