Openwings API Documentation (v1.1)

net.openwings.connector.synchronous
Interface ConnectionListener

All Known Subinterfaces:
ProviderProxy

public interface ConnectionListener

This interface describes a callback for when a UserProxy connects or disconnects to or from a ProviderProxy. This should be implemented by a receiver that wishes to be notified when a connection is established with the service. For example: when connect is called on a UserProxy, UserProxy should call userConnected() on a ProviderProxy, and the ProviderProxy should call userConnected() on the ConnectionListener.


Method Summary
 void userConnected()
          This method is called when a connection is established between the UserProxy and the ProviderProxy.
 void userDisconnected()
          This method is called when a connection is disconnected between the UserProxy and the ProviderProxy.
 

Method Detail

userConnected

public void userConnected()
                   throws java.rmi.RemoteException
This method is called when a connection is established between the UserProxy and the ProviderProxy. This allows the ConnectionListener to monitor connections to the service or services which it registers for.

Throws:
java.rmi.RemoteException

userDisconnected

public void userDisconnected()
                      throws java.rmi.RemoteException
This method is called when a connection is disconnected between the UserProxy and the ProviderProxy. This allows the ConnectionListener to monitor disconnections from the service or services which it registers for.

Throws:
java.rmi.RemoteException

Openwings API Documentation (v1.1)