com.adventnet.tl1
Interface ConnectionListener

All Known Implementing Classes:
ConnectionListenerImpl

public interface ConnectionListener

This is an interface that the user must implement to monitor the status of the connection with the TL1 Device.

The implementation of this interface will contain the custom code that will be executed when the connection status changes,ie when the connection is unexpectedly terminated. The implementation of this interface should be registered with TL1Session as follows.

 session.setConnectionListener(ConnectionListenerImpl)
 
where session is the instance of TL1Session and ConnectionListenerImpl is the implementation of this interface.
Click here to view the source file ConnectionListenerImpl.java

See Also:
TL1Session.setConnectionListener(com.adventnet.tl1.ConnectionListener), TL1Session.removeConnectionListener(), TL1Session

Method Summary
 void processConnectionDown(TL1Session session)
          This method is invoked,if connection is lost with the TL1 device.
 

Method Detail

processConnectionDown

void processConnectionDown(TL1Session session)
This method is invoked,if connection is lost with the TL1 device. Here the application can specify what action has to be taken,upon the termination of the connection,due to any reason.

Parameters:
session - the instance of TL1Session .