org.jacorb.orb.listener

Interface TCPConnectionListener

public interface TCPConnectionListener extends EventListener

The TCPConnectionListener interface defines methods for a developer to implement in order to receive notifications of socket events from JacORB.

Version: $Id: TCPConnectionListener.java,v 1.3 2006/07/27 09:07:59 alphonse.bendt Exp $

Author: Nick Cross

Method Summary
voidconnectionClosed(TCPConnectionEvent e)
connectionClosed will be called whenever a socket is closed.
voidconnectionOpened(TCPConnectionEvent e)
connectionOpened will be called whenever a socket is opened.
booleanisListenerEnabled()
Check whether this Listener is enabled.

Method Detail

connectionClosed

public void connectionClosed(TCPConnectionEvent e)
connectionClosed will be called whenever a socket is closed.

Parameters: e a TCPConenctionEvent value

connectionOpened

public void connectionOpened(TCPConnectionEvent e)
connectionOpened will be called whenever a socket is opened.

Parameters: e a TCPConenctionEvent value

isListenerEnabled

public boolean isListenerEnabled()
Check whether this Listener is enabled. This function is intended to lessen the computational cost of disabled listeners.

Returns: true, if the listener is ready to receive notifications of socket events.