org.ifeth.sehr.client.api.driver
Interface ConnectionListener

All Known Implementing Classes:
SEHRRemote

public interface ConnectionListener

The purpose of this interface object is to notify any new or closed remote connection to a SEHR host. ConnectionListener can be registered with a remote object in order to receive these notifications and manage the connections.

Author:
Hans J Haase

Method Summary
 void connectionChanged(SEHRConnection c)
          Notifies the listener that a connection status has changed, e.g. from 'used' to 'unused'.
 void connectionClosed(SEHRConnection c)
          Notifies the listener that a connection is closed and going to be discarded.
 void connectionOpen(SEHRConnection c)
          Notifies the listener that a connection is new or open.
 

Method Detail

connectionOpen

public void connectionOpen(SEHRConnection c)
Notifies the listener that a connection is new or open.


connectionClosed

public void connectionClosed(SEHRConnection c)
Notifies the listener that a connection is closed and going to be discarded.


connectionChanged

public void connectionChanged(SEHRConnection c)
Notifies the listener that a connection status has changed, e.g. from 'used' to 'unused'.