public enum ConnectionEvent extends Enum<ConnectionEvent>
ConnectionEvent enum represents various events that
can occur with a new connection. When a new connection is accepted
then the accept event is dispatched to a Trace object
if one has been associated with the connection.Trace| Enum Constant and Description |
|---|
ACCEPT
This event occurs when the server accepts a new connection.
|
ERROR
This event occurs when there is an error with the connection.
|
| Modifier and Type | Method and Description |
|---|---|
static ConnectionEvent |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ConnectionEvent[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ConnectionEvent ACCEPT
public static final ConnectionEvent ERROR
public static ConnectionEvent[] values()
for (ConnectionEvent c : ConnectionEvent.values()) System.out.println(c);
public static ConnectionEvent valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2024. All rights reserved.