|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.cindy.session.AbstractSession net.sf.cindy.session.nio.AbstractChannelSession
public abstract class AbstractChannelSession
Abstract selectable channel session.
Nested Class Summary | |
---|---|
protected class |
AbstractChannelSession.ChannelReactorHandler
Translate reactor events to session events. |
Constructor Summary | |
---|---|
AbstractChannelSession()
|
Method Summary | |
---|---|
Future |
close()
Close the session. |
protected void |
doClose()
|
protected void |
doStart()
|
protected Reactor |
getReactor()
|
protected abstract ReactorHandler |
getReactorHandler()
Get reactor handler. |
boolean |
isStarted()
Session have started. |
protected Future |
send(java.lang.Object obj,
Packet packet,
int priority)
|
Future |
start()
Start the session. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface net.sf.cindy.Session |
---|
getSessionType |
Constructor Detail |
---|
public AbstractChannelSession()
Method Detail |
---|
protected abstract ReactorHandler getReactorHandler()
protected final Reactor getReactor()
protected Future send(java.lang.Object obj, Packet packet, int priority)
send
in class AbstractSession
public boolean isStarted()
Session
public Future close() throws java.lang.IllegalStateException
Session
java.lang.IllegalStateException
protected void doClose()
public Future start()
Session
protected void doStart() throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |