- java.lang.Object
-
- jakarta.mail.event.MessageCountAdapter
-
- All Implemented Interfaces:
MessageCountListener
,java.util.EventListener
public abstract class MessageCountAdapter extends java.lang.Object implements 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.- Author:
- John Mani
-
-
Constructor Summary
Constructors Constructor Description MessageCountAdapter()
Creates a defaultMessageCountAdapter
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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 Detail
-
messagesAdded
public void messagesAdded(MessageCountEvent e)
Description copied from interface:MessageCountListener
Invoked when messages are added into a folder.- Specified by:
messagesAdded
in interfaceMessageCountListener
- Parameters:
e
- the MessageCountEvent
-
messagesRemoved
public void messagesRemoved(MessageCountEvent e)
Description copied from interface:MessageCountListener
Invoked when messages are removed (expunged) from a folder.- Specified by:
messagesRemoved
in interfaceMessageCountListener
- Parameters:
e
- the MessageCountEvent
-
-