public class GSTopicSessionImpl extends GSSessionImpl
javax.jms.TopicSession
interface.
A TopicSession
object provides methods for creating
TopicPublisher
,TopicSubscriber
( and TemporaryTopic
) objects. It
also provides a method for deleting its client's durable subscribers.
A TopicSession
is used for creating Pub/Sub specific objects. In general, use
the Session
object, and use TopicSession
only to support existing
code. Using the Session
object simplifies the programming model, and allows
transactions to be used across the two messaging domains.
A TopicSession
cannot be used to create objects specific to the point-to-point
domain. The following methods inherit from Session
, but must throw an
IllegalStateException
if used from TopicSession
:
createBrowser
createQueue
createTemporaryQueue
_tx, m_browsers, m_closed, m_closing, m_consumers, m_isQueue, m_producers, m_stopped, sentMessages, txLeaseTime, unackedMessages
Constructor and Description |
---|
GSTopicSessionImpl(com.j_spaces.jms.GSConnectionImpl connection,
boolean transacted,
int acknowledgeMode)
Constructs a topic session.
|
Modifier and Type | Method and Description |
---|---|
javax.jms.QueueBrowser |
createBrowser(javax.jms.Queue arg0) |
javax.jms.QueueBrowser |
createBrowser(javax.jms.Queue arg0,
String arg1) |
javax.jms.Queue |
createQueue(String arg0) |
javax.jms.TemporaryQueue |
createTemporaryQueue()
We use the same space proxy we obtained in the session and we write another External Entry,
which will have a class name of 'TempQueue'.
|
addBrowser, addConsumer, addProducer, close, commit, createBytesMessage, createBytesMessage, createConsumer, createConsumer, createConsumer, createDurableSubscriber, createDurableSubscriber, createMapMessage, createMessage, createObjectMessage, createObjectMessage, createProducer, createPublisher, createReceiver, createReceiver, createSender, createStreamMessage, createSubscriber, createSubscriber, createTemporaryTopic, createTextMessage, createTextMessage, createTopic, ensureTX, getAcknowledgeMode, getConn, getConsumersC, getJMSProviderName, getMessageListener, getMessagesC, getNumOfConsumedMsg, getNumOfProducedMsg, getProducersC, getRandomInt, getSessionID, getTransacted, getTransaction, isClosed, recover, removeBrower, removeConsumer, removeProducer, rollback, run, setConsumersC, setMessageListener, setMessagesC, setProducersC, setSessionID, toString, unsubscribe
public GSTopicSessionImpl(com.j_spaces.jms.GSConnectionImpl connection, boolean transacted, int acknowledgeMode) throws javax.jms.JMSException
connection
- The connection the session belongs to.transacted
- true
for a transacted session.acknowledgeMode
- 1 (auto), 2 (client) or 3 (dups ok).javax.jms.JMSException
- In case of an invalid acknowledge mode.public javax.jms.Queue createQueue(String arg0) throws javax.jms.JMSException
createQueue
in interface javax.jms.QueueSession
createQueue
in interface javax.jms.Session
createQueue
in class GSSessionImpl
javax.jms.JMSException
Session.createQueue(String)
public javax.jms.QueueBrowser createBrowser(javax.jms.Queue arg0) throws javax.jms.JMSException
createBrowser
in interface javax.jms.QueueSession
createBrowser
in interface javax.jms.Session
createBrowser
in class GSSessionImpl
javax.jms.JMSException
Session.createBrowser(Queue)
public javax.jms.QueueBrowser createBrowser(javax.jms.Queue arg0, String arg1) throws javax.jms.JMSException
createBrowser
in interface javax.jms.QueueSession
createBrowser
in interface javax.jms.Session
createBrowser
in class GSSessionImpl
javax.jms.JMSException
Session.createBrowser(Queue, String)
public javax.jms.TemporaryQueue createTemporaryQueue() throws javax.jms.JMSException
GSSessionImpl
createTemporaryQueue
in interface javax.jms.QueueSession
createTemporaryQueue
in interface javax.jms.Session
createTemporaryQueue
in class GSSessionImpl
javax.jms.JMSException
Session.createTemporaryQueue()
Copyright © GigaSpaces.