Package javax.mail.event
Class MessageCountAdapter
java.lang.Object
javax.mail.event.MessageCountAdapter
- All Implemented Interfaces:
EventListener
,MessageCountListener
The adapter which receives MessageCount events.
The methods in this class are empty; this class is provided as a
convenience for easily creating listeners by extending this class
and overriding only the methods of interest.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Invoked when messages are added into a folder.void
Invoked when messages are removed (expunged) from a folder.
-
Constructor Details
-
MessageCountAdapter
public MessageCountAdapter()
-
-
Method Details
-
messagesAdded
Description copied from interface:MessageCountListener
Invoked when messages are added into a folder.- Specified by:
messagesAdded
in interfaceMessageCountListener
-
messagesRemoved
Description copied from interface:MessageCountListener
Invoked when messages are removed (expunged) from a folder.- Specified by:
messagesRemoved
in interfaceMessageCountListener
-