|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.joram.client.jms.pool.PooledConnection
public class PooledConnection
Implements a pooled connection.
Field Summary | |
---|---|
(package private) Connection |
delegate
The underlying connection to Joram's server |
(package private) java.lang.String |
name
The identity of the authentified user for this connection |
(package private) java.lang.String |
password
The identity of the authentified user for this connection |
(package private) PooledConnectionFactory |
pcf
The pooled ConnectionFactory |
Constructor Summary | |
---|---|
PooledConnection(PooledConnectionFactory pcf,
java.lang.String name,
java.lang.String password)
Creates a new pooled connection. |
Method Summary | |
---|---|
void |
close()
Close the pooled connection, depending of the pool state this can results in the real closing of the connection of the inserting in the pool of idle connections. |
javax.jms.ConnectionConsumer |
createConnectionConsumer(javax.jms.Destination dest,
java.lang.String selector,
javax.jms.ServerSessionPool sessionPool,
int maxMessages)
|
javax.jms.ConnectionConsumer |
createDurableConnectionConsumer(javax.jms.Topic topic,
java.lang.String subName,
java.lang.String selector,
javax.jms.ServerSessionPool sessPool,
int maxMessages)
|
javax.jms.Session |
createSession(boolean transacted,
int acknowledgeMode)
|
java.lang.String |
getClientID()
|
javax.jms.ExceptionListener |
getExceptionListener()
|
javax.jms.ConnectionMetaData |
getMetaData()
|
void |
setClientID(java.lang.String clientID)
|
void |
setExceptionListener(javax.jms.ExceptionListener listener)
|
void |
start()
|
void |
stop()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
PooledConnectionFactory pcf
Connection delegate
java.lang.String name
java.lang.String password
Constructor Detail |
---|
public PooledConnection(PooledConnectionFactory pcf, java.lang.String name, java.lang.String password) throws javax.jms.JMSException
pcf
- The pooled ConnectionFactory.name
- The name of the authentified user for this connection.password
- The password of the authentified user for this connection.
javax.jms.JMSException
- An error occurs during the connection.Method Detail |
---|
public void close() throws javax.jms.JMSException
close
in interface javax.jms.Connection
javax.jms.JMSException
Connection.close()
public javax.jms.ConnectionConsumer createConnectionConsumer(javax.jms.Destination dest, java.lang.String selector, javax.jms.ServerSessionPool sessionPool, int maxMessages) throws javax.jms.JMSException
createConnectionConsumer
in interface javax.jms.Connection
javax.jms.JMSException
Connection.createConnectionConsumer(javax.jms.Destination, java.lang.String, javax.jms.ServerSessionPool, int)
public javax.jms.ConnectionConsumer createDurableConnectionConsumer(javax.jms.Topic topic, java.lang.String subName, java.lang.String selector, javax.jms.ServerSessionPool sessPool, int maxMessages) throws javax.jms.JMSException
createDurableConnectionConsumer
in interface javax.jms.Connection
javax.jms.JMSException
Connection.createDurableConnectionConsumer(javax.jms.Topic, java.lang.String, java.lang.String, javax.jms.ServerSessionPool, int)
public javax.jms.Session createSession(boolean transacted, int acknowledgeMode) throws javax.jms.JMSException
createSession
in interface javax.jms.Connection
javax.jms.JMSException
Connection.createSession(boolean, int)
public java.lang.String getClientID() throws javax.jms.JMSException
getClientID
in interface javax.jms.Connection
javax.jms.JMSException
Connection.getClientID()
public javax.jms.ExceptionListener getExceptionListener() throws javax.jms.JMSException
getExceptionListener
in interface javax.jms.Connection
javax.jms.JMSException
Connection.getExceptionListener()
public javax.jms.ConnectionMetaData getMetaData() throws javax.jms.JMSException
getMetaData
in interface javax.jms.Connection
javax.jms.JMSException
Connection.getMetaData()
public void setClientID(java.lang.String clientID) throws javax.jms.JMSException
setClientID
in interface javax.jms.Connection
javax.jms.JMSException
Connection.setClientID(java.lang.String)
public void setExceptionListener(javax.jms.ExceptionListener listener) throws javax.jms.JMSException
setExceptionListener
in interface javax.jms.Connection
javax.jms.JMSException
Connection.setExceptionListener(javax.jms.ExceptionListener)
public void start() throws javax.jms.JMSException
start
in interface javax.jms.Connection
javax.jms.JMSException
Connection.start()
public void stop() throws javax.jms.JMSException
stop
in interface javax.jms.Connection
javax.jms.JMSException
Connection.stop()
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |