|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.cindy.session.AbstractSessionAcceptor
net.sf.cindy.session.bio.BlockingSessionAcceptor
public class BlockingSessionAcceptor
Blocking session acceptor.
Constructor Summary | |
---|---|
BlockingSessionAcceptor()
|
Method Summary | |
---|---|
void |
close()
Close acceptor. |
int |
getAcceptedCount()
Get accepted session count. |
java.net.SocketAddress |
getListenAddress()
Get the listen address which the accpetor bind with. |
int |
getListenPort()
Get the listen port which the acceptor bind with. |
SessionType |
getSessionType()
Get the session type of the session accepted by the acceptor. |
java.net.ServerSocket |
getSocket()
|
boolean |
isStarted()
Acceptor is started. |
protected Session |
newSession(java.nio.channels.SocketChannel sc)
|
void |
start()
Start acceptor. |
Methods inherited from class net.sf.cindy.session.AbstractSessionAcceptor |
---|
exceptionCaught, getAcceptorHandler, getBacklog, isReuseAddress, sessionAccepted, setAcceptorHandler, setBacklog, setListenAddress, setListenPort, setReuseAddress, setServerSocketOptions, setSocketOptions |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BlockingSessionAcceptor()
Method Detail |
---|
public SessionType getSessionType()
SessionAcceptor
public boolean isStarted()
SessionAcceptor
public java.net.SocketAddress getListenAddress()
SessionAcceptor
getListenAddress
in interface SessionAcceptor
getListenAddress
in class AbstractSessionAcceptor
public int getListenPort()
SessionAcceptor
getListenPort
in interface SessionAcceptor
getListenPort
in class AbstractSessionAcceptor
public java.net.ServerSocket getSocket()
public void start()
SessionAcceptor
public int getAcceptedCount()
SessionAcceptor
protected Session newSession(java.nio.channels.SocketChannel sc)
public void close()
SessionAcceptor
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |