public enum DataEvent extends Enum<DataEvent>
enum that represents session events related with sending or receiving data.| Enum Constant and Description |
|---|
RECEIVED
Some data has just been received from the remote end.
|
SENT
Some data has just been sent to the remote end.
|
| Modifier and Type | Method and Description |
|---|---|
EventType |
type()
Returns the event type associated with this event.
|
static DataEvent |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DataEvent[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DataEvent RECEIVED
public static final DataEvent SENT
public static DataEvent[] values()
for (DataEvent c : DataEvent.values()) System.out.println(c);
public static DataEvent 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 nullpublic EventType type()
Copyright © 2017–2022 SNF4J.ORG. All rights reserved.