public class ConnectionEvent extends Object
Connection,
ConnectionListener| Modifier and Type | Class and Description |
|---|---|
static class |
ConnectionEvent.Type |
| Constructor and Description |
|---|
ConnectionEvent(Connection source,
ConnectionEvent.Type type)
Constructs a new instance of a ConnectionEvent
with a given source (Connection) and a given type.
|
| Modifier and Type | Method and Description |
|---|---|
Connection |
getSource()
Accessor method returning the source of the
ConnectionEvent instance.
|
ConnectionEvent.Type |
getType()
Method that helps identifying the type.
|
public ConnectionEvent(Connection source, ConnectionEvent.Type type)
source - Connection that represents the source of this event.type - int that contains one of the defined event types.public Connection getSource()
public ConnectionEvent.Type getType()
Copyright © 2020. All rights reserved.