T
- the argument type.public class NioEvent<T> extends Object implements Event<NioEvent<?>,NioEvent.NioEventType,SourceType>
NioConnection
and NioManager
.Modifier and Type | Class and Description |
---|---|
static class |
NioEvent.NioEventType
An enumeration of
NioEvent types. |
Modifier | Constructor and Description |
---|---|
protected |
NioEvent(NioEvent.NioEventType type,
Source<NioEvent<?>,SourceType> source)
Alternate constructor.
|
protected |
NioEvent(NioEvent.NioEventType type,
T argument,
Source<NioEvent<?>,SourceType> source)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
protected T |
getArgument()
Gets the argument.
|
Source<NioEvent<?>,SourceType> |
getSource()
Gets the
Source from which this event originated. |
NioEvent.NioEventType |
getType()
Gets the
Event type. |
protected NioEvent(NioEvent.NioEventType type, T argument, Source<NioEvent<?>,SourceType> source)
protected NioEvent(NioEvent.NioEventType type, Source<NioEvent<?>,SourceType> source)
public NioEvent.NioEventType getType()
Event
Event
type.getType
in interface EnumType<NioEvent.NioEventType>
getType
in interface Event<NioEvent<?>,NioEvent.NioEventType,SourceType>
public Source<NioEvent<?>,SourceType> getSource()
Event
Source
from which this event originated.getSource
in interface Event<NioEvent<?>,NioEvent.NioEventType,SourceType>
protected T getArgument()