public class Acceptor extends BaseTask
Constructor and Description |
---|
Acceptor(BaseServerHelper helper,
java.util.concurrent.CountDownLatch latch)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected BaseServerHelper |
getHelper()
Returns the parent server helper.
|
void |
run()
Listens on the given server socket for incoming connections.
|
isRunning, setRunning
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.protected BaseServerHelper getHelper()
public void run()
Copyright © 2005-2012. All Rights Reserved.