com.sun.sgs.io
Interface AcceptorListener


public interface AcceptorListener

Receives asynchronous notification of events from an associated 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.


Method Summary
 void disconnected()
          Notifies this listener that its associated Acceptor has shut down.
 ConnectionListener newConnection()
          Returns an appropriate ConnectionListener for a newly-accepted connection.
 

Method Detail

newConnection

ConnectionListener newConnection()
Returns an appropriate ConnectionListener for a newly-accepted connection. The new Connection is passed to the connected method of the returned ConnectionListener once it is fully established.

Returns:
a ConnectionListener to receive events for the newly-accepted Connection

disconnected

void disconnected()
Notifies this listener that its associated Acceptor has shut down.


Project Darkstar, Version 0.9.11.1
2013-07-29 21:44:10

Copyright © 2007-2013 Sun Microsystems, Inc. All rights reserved