The listener, which is used to be notified, when Connection gets closed. While this interface is public, it's not intended for public consumption at this time. This interface will be changing in 3.0.
CloseListeners can be registered with a {@link org.hornetq.spi.core.protocol.RemotingConnection} to get notified when the connection is closed. {@link org.hornetq.spi.core.protocol.RemotingConnection#addCloseListener(CloseListener)}
@author Andy Taylor
CloseListener handles all In-Band Bytestream close requests.
If a close request is received it looks if a stored In-Band Bytestream session exists and closes it. If no session with the given session ID exists an <item-not-found/> error is returned to the sender.
@author Henning Staib
This is an interface for listeners that need to be informed when a window closes. Note that this is a very small subset of what Java's WindowListener interface does. This class is a workaround for a bug in Java's AWT, where components are not informed in any way when the window that contains them is closed, even though they can have registered listeners. The listeners are never called, unless the component is a top-level window. A listener that implements this interface, by contrast, is informed regardless of whether it is at the top level. This is used, for example, by the ComponentDialog class.
@see ComponentDialog
@author Edward A. Lee
@version $Id: CloseListener.java,v 1.13 2005/07/08 19:59:07 cxh Exp $
@since Ptolemy II 1.0
@Pt.ProposedRating Green (eal)
@Pt.AcceptedRating Green (janneck)
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.