org.jacorb.orb.listener
Interface TCPConnectionListener

All Superinterfaces:
java.util.EventListener
All Known Implementing Classes:
NullTCPConnectionListener

public interface TCPConnectionListener
extends java.util.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
 void connectionClosed(TCPConnectionEvent e)
          connectionClosed will be called whenever a socket is closed.
 void connectionOpened(TCPConnectionEvent e)
          connectionOpened will be called whenever a socket is opened.
 boolean isListenerEnabled()
          Check whether this Listener is enabled.
 

Method Detail

isListenerEnabled

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.

connectionOpened

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

Parameters:
e - a TCPConenctionEvent value

connectionClosed

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

Parameters:
e - a TCPConenctionEvent value