MessageCountListener (JavaMail API documentation)
Date: 2018-10-22

javax.mail.event

## Interface MessageCountListener

- All Superinterfaces:
    java.util.EventListener
  All Known Implementing Classes:
    MessageCountAdapter

      public interface MessageCountListener
      extends java.util.EventListener

  This is the Listener interface for MessageCount events.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and 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

          void messagesAdded(MessageCountEvent e)

      Invoked when messages are added into a folder.

    - #### messagesRemoved

          void messagesRemoved(MessageCountEvent e)

      Invoked when messages are removed (expunged) from a folder.

Copyright © 1996-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms< /a>.