|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.qpid.client.Closeable
org.apache.qpid.client.AMQSession<BasicMessageConsumer_0_10,BasicMessageProducer_0_10>
org.apache.qpid.client.AMQSession_0_10
org.apache.qpid.client.XASessionImpl
public class XASessionImpl
This is an implementation of the javax.njms.XASEssion interface.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.apache.qpid.client.AMQSession |
---|
AMQSession.Dispatchable, AMQSession.Dispatcher, AMQSession.IdToConsumerMap<C extends BasicMessageConsumer> |
Field Summary |
---|
Fields inherited from class org.apache.qpid.client.AMQSession_0_10 |
---|
_qpidConnection |
Fields inherited from class org.apache.qpid.client.Closeable |
---|
_closed, _closing |
Fields inherited from interface javax.jms.Session |
---|
AUTO_ACKNOWLEDGE, CLIENT_ACKNOWLEDGE, DUPS_OK_ACKNOWLEDGE, SESSION_TRANSACTED |
Fields inherited from interface org.apache.qpid.jms.Session |
---|
NO_ACKNOWLEDGE, PRE_ACKNOWLEDGE |
Constructor Summary | |
---|---|
XASessionImpl(org.apache.qpid.transport.Connection qpidConnection,
AMQConnection con,
int channelId,
int defaultPrefetchHigh,
int defaultPrefetchLow)
Create a JMS XASession |
Method Summary | |
---|---|
void |
commit()
Throws a TransactionInProgressException , since it should
not be called for an XASession object. |
void |
createSession()
Create a qpid session. |
protected org.apache.qpid.transport.Session |
getQpidSession()
Access to the underlying Qpid Session |
QueueSession |
getQueueSession()
Gets the topic session associated with this XATopicSession . |
Session |
getSession()
Gets the session associated with this XASession. |
TopicSession |
getTopicSession()
Gets the topic session associated with this XATopicSession . |
XAResource |
getXAResource()
Returns an XA resource. |
void |
rollback()
Throws a TransactionInProgressException , since it should
not be called for an XASession object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.jms.XASession |
---|
getTransacted |
Constructor Detail |
---|
public XASessionImpl(org.apache.qpid.transport.Connection qpidConnection, AMQConnection con, int channelId, int defaultPrefetchHigh, int defaultPrefetchLow)
Method Detail |
---|
public void createSession()
public Session getSession() throws JMSException
getSession
in interface XASession
JMSException
- if an internal error occurs.public XAResource getXAResource()
getXAResource
in interface XASession
public void commit() throws JMSException
TransactionInProgressException
, since it should
not be called for an XASession object.
commit
in interface Session
commit
in interface XASession
commit
in class AMQSession_0_10
TransactionInProgressException
- always.
JMSException
- If the JMS provider fails to commit the transaction due to some internal error. This does
not mean that the commit is known to have failed, merely that it is not known whether it
failed or not.public void rollback() throws JMSException
TransactionInProgressException
, since it should
not be called for an XASession object.
rollback
in interface Session
rollback
in interface XASession
rollback
in class AMQSession<BasicMessageConsumer_0_10,BasicMessageProducer_0_10>
TransactionInProgressException
- always.
JMSException
- If the JMS provider fails to rollback the transaction due to some internal error. This does
not mean that the rollback is known to have failed, merely that it is not known whether it
failed or not.protected org.apache.qpid.transport.Session getQpidSession()
getQpidSession
in class AMQSession_0_10
public QueueSession getQueueSession() throws JMSException
XATopicSession
.
getQueueSession
in interface XAQueueSession
JMSException
- If an internal error occurs.public TopicSession getTopicSession() throws JMSException
XATopicSession
.
getTopicSession
in interface XATopicSession
JMSException
- If an internal error occurs.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |