|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object rabbit.httpio.Acceptor
public class Acceptor
A standard acceptor.
Constructor Summary | |
---|---|
Acceptor(ServerSocketChannel ssc,
SelectorRunner selectorRunner,
Logger logger,
AcceptorListener listener)
|
Method Summary | |
---|---|
String |
getDescription()
Get a string description. |
void |
register()
Register OP_ACCEPT with the selector. |
void |
run()
Accept a SocketChannel. |
void |
timeout()
Handle timeout, since an acceptor should not get timeouts an exception will be thrown. |
boolean |
useSeparateThread()
Acceptor runs in the selector thread. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Acceptor(ServerSocketChannel ssc, SelectorRunner selectorRunner, Logger logger, AcceptorListener listener)
Method Detail |
---|
public String getDescription()
SocketHandler
getDescription
in interface SocketHandler
public boolean useSeparateThread()
useSeparateThread
in interface SocketHandler
public void timeout()
timeout
in interface SocketHandler
public void run()
run
in interface Runnable
public void register() throws IOException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |