|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.restlet.engine.http.connector.BaseTask
org.restlet.engine.http.connector.Acceptor
public class Acceptor
Listens on the given socket channel for incoming connections and dispatches them to the given handler pool
Constructor Summary | |
---|---|
Acceptor(BaseServerHelper helper,
java.util.concurrent.CountDownLatch latch)
Constructor. |
Method Summary | |
---|---|
protected BaseServerHelper |
getHelper()
Returns the parent server helper. |
void |
run()
Listens on the given server socket for incoming connections. |
Methods inherited from class org.restlet.engine.http.connector.BaseTask |
---|
isRunning, setRunning |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Acceptor(BaseServerHelper helper, java.util.concurrent.CountDownLatch latch)
helper
- The target server helper.latch
- The latch to countdown when the socket is ready to accept
connections.Method Detail |
---|
protected BaseServerHelper getHelper()
public void run()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |