Package | Description |
---|---|
org.shared.net.nio |
A package for managed connections built on top of
java.nio . |
Modifier and Type | Field and Description |
---|---|
protected StateTable<NioConnection.NioConnectionStatus,NioEvent.NioEventType,NioEvent<?>> |
NioManagerThread.fsm
The external state machine.
|
protected StateTable<NioManagerThread.NioManagerThreadStatus,NioEvent.NioEventType,NioEvent<?>> |
NioManagerThread.fsmInternal
The internal state machine.
|
protected Queue<NioEvent<?>> |
NioManagerThread.queue
The event queue.
|
Modifier and Type | Method and Description |
---|---|
protected NioEvent<Integer> |
NioConnection.createOpEvent(int mask,
boolean enabled)
Creates an operation interest change
NioEvent that originates from this connection. |
Modifier and Type | Method and Description |
---|---|
Handler<NioEvent<?>> |
NioConnection.getHandler() |
Source<NioEvent<?>,SourceType> |
NioEvent.getSource() |
Modifier and Type | Method and Description |
---|---|
void |
NioManagerThread.onLocal(NioEvent<?> evt)
Enqueues the given event and wakes this thread up from a possible
Selector.select() . |
void |
NioConnection.onLocal(NioEvent<?> evt) |
void |
NioConnection.onRemote(NioEvent<?> evt) |
Modifier and Type | Method and Description |
---|---|
void |
NioConnection.setHandler(Handler<NioEvent<?>> handler) |
Constructor and Description |
---|
NioEvent(NioEvent.NioEventType type,
Source<NioEvent<?>,SourceType> source)
Alternate constructor.
|
NioEvent(NioEvent.NioEventType type,
T argument,
Source<NioEvent<?>,SourceType> source)
Default constructor.
|