async.common
Interface ASyncListener

All Known Subinterfaces:
ASyncTCPListener, ASyncUDPListener

public interface ASyncListener

An interface for a listener to be registered with the transport protocol, typically so that a client can be notified of incoming connections, new data, and so forth.

Author:
Michael Parker

Method Summary
 void nowRunning()
          This callback method is invoked when this transport protocol is now running.
 void providerStopped()
          This callback method is invoked when this transport protocol stops running because the ASync instance it is registered with has stopped.
 void serviceStopped()
          This callback method is invoked when this transport protocol instance stops because it has encountered an error with its ASync instance.
 

Method Detail

nowRunning

void nowRunning()
This callback method is invoked when this transport protocol is now running.


providerStopped

void providerStopped()
This callback method is invoked when this transport protocol stops running because the ASync instance it is registered with has stopped.


serviceStopped

void serviceStopped()
This callback method is invoked when this transport protocol instance stops because it has encountered an error with its ASync instance. That instance, however, has not necessarily stopped, leaving other protocols potentially running.