javax.mail.event
public class ConnectionEvent extends MailEvent
Version: 1.3
| Field Summary | |
|---|---|
| static int | CLOSED
A connection was closed. |
| static int | DISCONNECTED
A connection was disconnected (not currently used). |
| static int | OPENED
A connection was opened. |
| protected int | type
The event type. |
| Constructor Summary | |
|---|---|
| ConnectionEvent(Object source, int type)
Constructor. | |
| Method Summary | |
|---|---|
| void | dispatch(Object listener)
Invokes the appropriate listener method. |
| int | getType()
Returns the type of this event. |
Parameters: source the source type one of OPENED, DISCONNECTED, or CLOSED