public class ConnectionEvent extends MailEvent
| 限定符和类型 | 字段和说明 |
|---|---|
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.
|
source| 构造器和说明 |
|---|
ConnectionEvent(Object source,
int type)
Construct a ConnectionEvent.
|
public static final int OPENED
public static final int DISCONNECTED
public static final int CLOSED
protected int type
public ConnectionEvent(Object source, int type)
source - The source objecttype - the event typeCopyright © 2021 Oracle. All rights reserved.