org.restlet.engine.http.connector
Class Acceptor
java.lang.Object
org.restlet.engine.http.connector.BaseTask
org.restlet.engine.http.connector.Acceptor
- All Implemented Interfaces:
- Runnable
public class Acceptor
- extends BaseTask
Listens on the given socket channel for incoming connections and dispatches
them to the given handler pool
- Author:
- Jerome Louvel
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Acceptor
public Acceptor(BaseServerHelper helper,
CountDownLatch latch)
- Constructor.
- Parameters:
helper
- The target server helper.latch
- The latch to countdown when the socket is ready to accept
connections.
getHelper
protected BaseServerHelper getHelper()
- Returns the parent server helper.
- Returns:
- The parent server helper.
run
public void run()
- Listens on the given server socket for incoming connections.
Copyright © 2005-2011 Noelios Technologies.