|
||||||||||
| 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,
NioHandler nioHandler,
AcceptorListener listener)
|
|
| Method Summary | |
|---|---|
void |
accept()
Accept a SocketChannel. |
void |
closed()
Signal that the channel has been closed. |
String |
getDescription()
Get a string description. |
Long |
getTimeout()
Get the timeout time in millis. |
void |
register()
Register OP_ACCEPT with the selector. |
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,
NioHandler nioHandler,
AcceptorListener listener)
| Method Detail |
|---|
public void closed()
SocketChannelHandler
closed in interface SocketChannelHandlerpublic void timeout()
timeout in interface SocketChannelHandlerpublic boolean useSeparateThread()
useSeparateThread in interface SocketChannelHandlerpublic String getDescription()
SocketChannelHandler
getDescription in interface SocketChannelHandlerpublic Long getTimeout()
SocketChannelHandler
getTimeout in interface SocketChannelHandlerpublic void accept()
accept in interface AcceptHandler
public void register()
throws IOException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||