Package jakarta.mail.event
Class MessageCountAdapter
java.lang.Object
jakarta.mail.event.MessageCountAdapter
- All Implemented Interfaces:
MessageCountListener
,EventListener
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
- Parameters:
e
- the MessageCountEvent
-
messagesRemoved
Description copied from interface:MessageCountListener
Invoked when messages are removed (expunged) from a folder.- Specified by:
messagesRemoved
in interfaceMessageCountListener
- Parameters:
e
- the MessageCountEvent
-