Name

ConnectionListener

Synopsis

This is a listener interface for Connection events. This interface allows an object to be notified when a Message Store, Folder, or Transport is opened, closed, or disconnected.

                  Passed To
public interface ConnectionListener extends java.util.EventListener {
// Public Instance Methods
   public abstract void closed(
        javax.mail.event.ConnectionEvent e);  
   public abstract void disconnected(
        javax.mail.event.ConnectionEvent e);  
   public abstract void opened(
        javax.mail.event.ConnectionEvent e);  
}

Implementations

ConnectionAdapter

Passed To

Folder.{addConnectionListener(), removeConnectionListener()}, Service.{addConnectionListener(), removeConnectionListener()}

Get Java Enterprise in a Nutshell, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.