Name

ConnectionEvent

Synopsis

The ConnectionEvent object defines OPENED, CLOSED, and DISCONNECTED events on a mail service.

                  
public class ConnectionEvent extends MailEvent {
// Public Constructors
   public ConnectionEvent( Object source, int type);  
// Public Constants
   public static final int CLOSED;                               // =3
   public static final int DISCONNECTED;                         // =2
   public static final int OPENED;                               // =1
                  // Public Instance Methods
   public int getType();  
// Public Methods Overriding MailEvent
   public void dispatch( Object listener);  
// Protected Instance Fields
   protected int type;  
}

Passed To

ConnectionAdapter.{closed(), disconnected(), opened()}, ConnectionListener.{closed(), disconnected(), opened()}

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.