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
FieldsModifier and TypeFieldDescriptionstatic final intA connection was closed.static final intA connection was disconnected (not currently used).static final intA connection was opened.protected intThe event type.Fields inherited from class java.util.EventObject
source -
Constructor Summary
Constructors -
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