javax.mail.event

Interface MessageCountListener

All Superinterfaces:
EventListener
Known Implementing Classes:
MessageCountAdapter

public interface MessageCountListener
extends EventListener

This is the Listener interface for MessageCount events.

Method Summary

void
messagesAdded(MessageCountEvent e)
Invoked when messages are added into a folder.
void
messagesRemoved(MessageCountEvent e)
Invoked when messages are removed(expunged) from a folder.

Method Details

messagesAdded

public void messagesAdded(MessageCountEvent e)
Invoked when messages are added into a folder.


messagesRemoved

public void messagesRemoved(MessageCountEvent e)
Invoked when messages are removed(expunged) from a folder.