|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
T
- the type of the IoSession
this processor can handlepublic interface IoProcessor<T extends IoSession>
An internal interface to represent an 'I/O processor' that performs
actual I/O operations for IoSession
s. It abstracts existing
reactor frameworks such as Java NIO once again to simplify transport
implementations.
Method Summary | |
---|---|
void |
add(T session)
Adds the specified session to the I/O processor so that
the I/O processor starts to perform any I/O operations related
with the session . |
void |
dispose()
Releases any resources allocated by this processor. |
void |
flush(T session)
Flushes the internal write request queue of the specified session . |
boolean |
isDisposed()
Returns true if and if only all resources of this processor have been disposed. |
boolean |
isDisposing()
Returns true if and if only dispose() method has
been called. |
void |
remove(T session)
Removes and closes the specified session from the I/O
processor so that the I/O processor closes the connection
associated with the session and releases any other related
resources. |
void |
updateTrafficMask(T session)
Controls the traffic of the specified session as specified
in IoSession.getTrafficMask() . |
Method Detail |
---|
boolean isDisposing()
dispose()
method has
been called. Please note that this method will return true
even after all the related resources are released.
boolean isDisposed()
void dispose()
void add(T session)
session
to the I/O processor so that
the I/O processor starts to perform any I/O operations related
with the session
.
void flush(T session)
session
.
void updateTrafficMask(T session)
session
as specified
in IoSession.getTrafficMask()
.
void remove(T session)
session
from the I/O
processor so that the I/O processor closes the connection
associated with the session
and releases any other related
resources.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |