org.safs.sockets
Interface ConnectionListener

All Superinterfaces:
NamedListener
All Known Subinterfaces:
RemoteClientListener, SocketProtocolListener
All Known Implementing Classes:
AbstractProtocolRunner, MessengerService, RemoteClientRunner, RemoteControlUI, RemoteControlUI, SAFSRemoteControl, SAFSRemoteControlRunner, SoloRemoteControl, SoloRemoteControlRunner

public interface ConnectionListener
extends NamedListener

A NamedListener that wishes to sink connection state information or commands from remote sources.


Method Summary
 void onReceiveConnection()
          Called when a 2-way sockets connection has been established.
 void onReceiveLocalShutdown(int shutdownCause)
          A local source has issued a SHUTDOWN event/command.
 void onReceiveRemoteShutdown(int shutdownCause)
          A remote source has issued a SHUTDOWN event/command.
 
Methods inherited from interface org.safs.sockets.NamedListener
getListenerName
 

Method Detail

onReceiveConnection

void onReceiveConnection()
Called when a 2-way sockets connection has been established.


onReceiveLocalShutdown

void onReceiveLocalShutdown(int shutdownCause)
A local source has issued a SHUTDOWN event/command.

Parameters:
shutdownCause - is used to indicate whether the shutdown is due to normal or abnormal circumstances.
See Also:
SocketProtocol.STATUS_SHUTDOWN_NORMAL, SocketProtocol.STATUS_SHUTDOWN_REMOTE_CLIENT

onReceiveRemoteShutdown

void onReceiveRemoteShutdown(int shutdownCause)
A remote source has issued a SHUTDOWN event/command.

Parameters:
shutdownCause - is used to indicate whether the shutdown is due to normal or abnormal circumstances.
See Also:
SocketProtocol.STATUS_SHUTDOWN_NORMAL, SocketProtocol.STATUS_SHUTDOWN_REMOTE_CLIENT