Package jakarta.mail.event
Class ConnectionEvent
java.lang.Object
java.util.EventObject
jakarta.mail.event.MailEvent
jakarta.mail.event.ConnectionEvent
- All Implemented Interfaces:
Serializable
This class models Connection events.
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
A connection was closed.static final int
A connection was disconnected (not currently used).static final int
A connection was opened.protected int
The event type.Fields inherited from class java.util.EventObject
source
-
Constructor Summary
-
Method Summary
Methods inherited from class java.util.EventObject
getSource, toString
-
Field Details
-
OPENED
public static final int OPENEDA connection was opened.- See Also:
-
DISCONNECTED
public static final int DISCONNECTEDA connection was disconnected (not currently used).- See Also:
-
CLOSED
public static final int CLOSEDA connection was closed.- See Also:
-
type
protected int typeThe event type.
-
-
Constructor Details
-
ConnectionEvent
Construct a ConnectionEvent.- Parameters:
source
- The source objecttype
- the event type
-
-
Method Details