jms4spread
Class Connection

java.lang.Object
  |
  +--jms4spread.Connection
Direct Known Subclasses:
TopicConnection

public class Connection
extends java.lang.Object

Clients active connection to JMS4spread


Method Summary
 void close()
          closes this connection to JMS4spread
 java.lang.String getClientID()
          Gets the clientID.
 ExceptionListener getExceptionListener()
          Gets the ExceptionListener for this Connection
 ConnectionMetaData getMetaData()
          Gets the Meta Data for this connection
 void setClientID(java.lang.String id)
          Sets the clientID.
 void setExceptionListener(ExceptionListener e)
           
 void start()
          Starts the connection.
 void stop()
          Stops the connection.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

close

public void close()
           throws JMSException
closes this connection to JMS4spread
Throws:
JMSException - in case of internal error

getClientID

public java.lang.String getClientID()
                             throws JMSException
Gets the clientID. Note: The clientID is not used for anything yet
Returns:
String Client ID
Throws:
JMSException - in case of internal error

setClientID

public void setClientID(java.lang.String id)
                 throws JMSException
Sets the clientID. Note: The clientID is not used for anything yet
Parameters:
id - the ClientID
Throws:
JMSException - in case of internal error

getExceptionListener

public ExceptionListener getExceptionListener()
Gets the ExceptionListener for this Connection

getMetaData

public ConnectionMetaData getMetaData()
Gets the Meta Data for this connection

setExceptionListener

public void setExceptionListener(ExceptionListener e)

start

public void start()
Starts the connection. This method does nothing yet.

stop

public void stop()
Stops the connection. This method does nothing yet.