org.jcoderz.commons.connector
Interface ConnectionNotificationListener

All Known Implementing Classes:
FsManagedConnectionImpl

public interface ConnectionNotificationListener

This interface provides a set of methods to notify the underlying listener about connection's events. This interface should be used by a connection handle to notify the underlying managed connection about events on the connection handle.


Method Summary
 void notifyConnectionClosed(Object source)
          Notifies the listener, that the connection handle has been closed.
 void notifyConnectionDissociated(Object source)
          Notifies the listener, that the connection handle has been dissociated from the underlying managed connection.
 void notifyConnectionErrorOccurred(Object source, Exception e)
          Notifies the listener, that an error has been occured.
 

Method Detail

notifyConnectionClosed

void notifyConnectionClosed(Object source)
Notifies the listener, that the connection handle has been closed.

Parameters:
source - The object that sends this notification.

notifyConnectionDissociated

void notifyConnectionDissociated(Object source)
Notifies the listener, that the connection handle has been dissociated from the underlying managed connection.

Parameters:
source - The object that sends this notification.

notifyConnectionErrorOccurred

void notifyConnectionErrorOccurred(Object source,
                                   Exception e)
Notifies the listener, that an error has been occured.

Parameters:
source - The object that sends this notification.
e - The exception caused this notification.


Copyright 2007 The jCoderZ Project.