|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.caucho.jms.connection.ConnectionImpl
public class ConnectionImpl
A connection.
| Constructor Summary | |
|---|---|
ConnectionImpl(ConnectionFactoryImpl factory)
|
|
ConnectionImpl(ConnectionFactoryImpl factory,
boolean isXA)
|
|
| Method Summary | |
|---|---|
protected void |
addSession(JmsSession session)
Adds a session. |
protected void |
assignClientID()
Assigns a random client id. |
protected void |
checkOpen()
Checks that the session is open. |
void |
close()
Closes the connection. |
ConnectionConsumer |
createConnectionConsumer(Destination destination,
java.lang.String messageSelector,
ServerSessionPool sessionPool,
int maxMessages)
Creates a new consumer (optional) |
ConnectionConsumer |
createDurableConnectionConsumer(Topic topic,
java.lang.String name,
java.lang.String messageSelector,
ServerSessionPool sessionPool,
int maxMessages)
Creates a new consumer (optional) |
Session |
createSession(boolean transacted,
int acknowledgeMode)
Creates a new connection session. |
XASession |
createXASession()
Creates a new connection session. |
java.lang.String |
getClientID()
Returns the connection's client identifier. |
ConnectionFactoryImpl |
getConnectionFactory()
Returns the connection factory. |
ExceptionListener |
getExceptionListener()
Returns the connection's exception listener. |
ConnectionMetaData |
getMetaData()
Returns the connection's metadata. |
boolean |
isXA()
Returns true for an XA connection. |
void |
setClientID(java.lang.String clientId)
Sets the connections client identifier. |
void |
setExceptionListener(ExceptionListener listener)
Returns the connection's exception listener. |
void |
start()
Start (or restart) a connection. |
void |
stop()
Stops the connection temporarily. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ConnectionImpl(ConnectionFactoryImpl factory,
boolean isXA)
public ConnectionImpl(ConnectionFactoryImpl factory)
| Method Detail |
|---|
public boolean isXA()
public java.lang.String getClientID()
throws JMSException
getClientID in interface ConnectionJMSException
public void setClientID(java.lang.String clientId)
throws JMSException
setClientID in interface Connectionthe - new client identifier.
JMSExceptionpublic ConnectionFactoryImpl getConnectionFactory()
public ExceptionListener getExceptionListener()
throws JMSException
getExceptionListener in interface ConnectionJMSException
public void setExceptionListener(ExceptionListener listener)
throws JMSException
setExceptionListener in interface ConnectionJMSException
public ConnectionMetaData getMetaData()
throws JMSException
getMetaData in interface ConnectionJMSException
public void start()
throws JMSException
start in interface ConnectionJMSException
public void stop()
throws JMSException
stop in interface ConnectionJMSException
public Session createSession(boolean transacted,
int acknowledgeMode)
throws JMSException
createSession in interface ConnectioncreateSession in interface XAConnectionJMSException
public XASession createXASession()
throws JMSException
createXASession in interface XAConnectionJMSExceptionprotected void addSession(JmsSession session)
public ConnectionConsumer createConnectionConsumer(Destination destination,
java.lang.String messageSelector,
ServerSessionPool sessionPool,
int maxMessages)
throws JMSException
createConnectionConsumer in interface ConnectionJMSException
public ConnectionConsumer createDurableConnectionConsumer(Topic topic,
java.lang.String name,
java.lang.String messageSelector,
ServerSessionPool sessionPool,
int maxMessages)
throws JMSException
createDurableConnectionConsumer in interface ConnectionJMSException
public void close()
throws JMSException
close in interface ConnectionJMSException
protected void checkOpen()
throws IllegalStateException
IllegalStateExceptionprotected void assignClientID()
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||