org.apache.geronimo.messaging.remotenode
Interface RemoteNodeConnection

All Superinterfaces:
MsgConsProd, MsgConsumer, MsgProducer
All Known Implementing Classes:
AbstractRemoteNodeConnection, RemoteNodeJoinerConnection

public interface RemoteNodeConnection
extends MsgConsProd

Connection to a remote node.

Version:
$Revision: 1.2 $ $Date: 2004/07/20 00:15:06 $

Nested Class Summary
static interface RemoteNodeConnection.LifecycleListener
          Callback interface to be notified when the connection is closed.
 
Method Summary
 void close()
          Closes the connection.
 void open()
          Opens the connection.
 void setLifecycleListener(RemoteNodeConnection.LifecycleListener aListener)
          Sets the listener to be notified when the connection is closed.
 
Methods inherited from interface org.apache.geronimo.messaging.MsgProducer
setMsgProducerOut
 
Methods inherited from interface org.apache.geronimo.messaging.MsgConsumer
getMsgConsumerOut
 

Method Detail

open

public void open()
          throws NodeException
Opens the connection.

Throws:
NodeException - Indicates that the connection can not be opened.

close

public void close()
Closes the connection.


setLifecycleListener

public void setLifecycleListener(RemoteNodeConnection.LifecycleListener aListener)
Sets the listener to be notified when the connection is closed.

Parameters:
aListener - Listener.


Copyright © 2003-2005 Apache Software Foundation. All Rights Reserved.