|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectrabbit.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 SocketHandlerpublic boolean useSeparateThread()
useSeparateThread in interface SocketHandlerpublic void timeout()
timeout in interface SocketHandlerpublic 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 | |||||||||