public interface AcceptorListener
Acceptor. The newConnection method
is invoked when a connection has been accepted to obtain an appropriate
ConnectionListener from this listener. When the
Acceptor is shut down, the listener is notified by
invoking its disconnected() method.| Modifier and Type | Method and Description |
|---|---|
void |
disconnected()
Notifies this listener that its associated
Acceptor
has shut down. |
ConnectionListener |
newConnection()
Returns an appropriate
ConnectionListener for a newly-accepted
connection. |
ConnectionListener newConnection()
ConnectionListener for a newly-accepted
connection. The new Connection is passed to the
connected method of the
returned ConnectionListener once it is fully established.ConnectionListener to receive events for the
newly-accepted Connectionvoid disconnected()
Acceptor
has shut down.Copyright © 2007-2013. All Rights Reserved.