public class NevadoSession extends Object implements javax.jms.Session
Modifier and Type | Field and Description |
---|---|
protected boolean |
_closed |
Modifier | Constructor and Description |
---|---|
protected |
NevadoSession(NevadoConnection connection,
boolean transacted,
int acknowledgeMode) |
protected NevadoSession(NevadoConnection connection, boolean transacted, int acknowledgeMode)
public NevadoBytesMessage createBytesMessage() throws javax.jms.JMSException
createBytesMessage
in interface javax.jms.Session
javax.jms.JMSException
public NevadoMapMessage createMapMessage() throws javax.jms.JMSException
createMapMessage
in interface javax.jms.Session
javax.jms.JMSException
public NevadoMessage createMessage() throws javax.jms.JMSException
createMessage
in interface javax.jms.Session
javax.jms.JMSException
public NevadoObjectMessage createObjectMessage() throws javax.jms.JMSException
createObjectMessage
in interface javax.jms.Session
javax.jms.JMSException
public NevadoObjectMessage createObjectMessage(Serializable serializable) throws javax.jms.JMSException
createObjectMessage
in interface javax.jms.Session
javax.jms.JMSException
public NevadoStreamMessage createStreamMessage() throws javax.jms.JMSException
createStreamMessage
in interface javax.jms.Session
javax.jms.JMSException
public NevadoTextMessage createTextMessage() throws javax.jms.JMSException
createTextMessage
in interface javax.jms.Session
javax.jms.JMSException
public NevadoTextMessage createTextMessage(String text) throws javax.jms.JMSException
createTextMessage
in interface javax.jms.Session
javax.jms.JMSException
public boolean getTransacted() throws javax.jms.JMSException
getTransacted
in interface javax.jms.Session
javax.jms.JMSException
public int getAcknowledgeMode() throws javax.jms.JMSException
getAcknowledgeMode
in interface javax.jms.Session
javax.jms.JMSException
public void commit() throws javax.jms.JMSException
commit
in interface javax.jms.Session
javax.jms.JMSException
public void rollback() throws javax.jms.JMSException
rollback
in interface javax.jms.Session
javax.jms.JMSException
public void close() throws javax.jms.JMSException
close
in interface javax.jms.Session
javax.jms.JMSException
public void recover() throws javax.jms.JMSException
recover
in interface javax.jms.Session
javax.jms.JMSException
public javax.jms.MessageListener getMessageListener() throws javax.jms.JMSException
getMessageListener
in interface javax.jms.Session
javax.jms.JMSException
public void setMessageListener(javax.jms.MessageListener messageListener) throws javax.jms.JMSException
setMessageListener
in interface javax.jms.Session
javax.jms.JMSException
public void run()
public NevadoMessageProducer createProducer(javax.jms.Destination destination) throws javax.jms.JMSException
createProducer
in interface javax.jms.Session
javax.jms.JMSException
public NevadoMessageConsumer createConsumer(javax.jms.Destination destination) throws javax.jms.JMSException
createConsumer
in interface javax.jms.Session
javax.jms.JMSException
public NevadoMessageConsumer createConsumer(javax.jms.Destination destination, String selector) throws javax.jms.JMSException
createConsumer
in interface javax.jms.Session
javax.jms.JMSException
public NevadoMessageConsumer createConsumer(javax.jms.Destination destination, String selector, boolean noLocal) throws javax.jms.JMSException
createConsumer
in interface javax.jms.Session
javax.jms.JMSException
public javax.jms.QueueBrowser createBrowser(javax.jms.Queue queue) throws javax.jms.JMSException
createBrowser
in interface javax.jms.Session
javax.jms.JMSException
public javax.jms.QueueBrowser createBrowser(javax.jms.Queue queue, String s) throws javax.jms.JMSException
createBrowser
in interface javax.jms.Session
javax.jms.JMSException
public NevadoTemporaryQueue createTemporaryQueue() throws javax.jms.JMSException
createTemporaryQueue
in interface javax.jms.Session
javax.jms.JMSException
public NevadoQueue createQueue(String name) throws javax.jms.JMSException
createQueue
in interface javax.jms.Session
javax.jms.JMSException
protected NevadoQueue createInternalQueue(String name) throws javax.jms.JMSException
javax.jms.JMSException
public NevadoTopic createTopic(String name) throws javax.jms.JMSException
createTopic
in interface javax.jms.Session
javax.jms.JMSException
public javax.jms.TopicSubscriber createDurableSubscriber(javax.jms.Topic topic, String name) throws javax.jms.JMSException
createDurableSubscriber
in interface javax.jms.Session
javax.jms.JMSException
public javax.jms.TopicSubscriber createDurableSubscriber(javax.jms.Topic topic, String name, String selector, boolean noLocal) throws javax.jms.JMSException
createDurableSubscriber
in interface javax.jms.Session
javax.jms.JMSException
public NevadoTemporaryTopic createTemporaryTopic() throws javax.jms.JMSException
createTemporaryTopic
in interface javax.jms.Session
javax.jms.JMSException
public void unsubscribe(String name) throws javax.jms.JMSException
unsubscribe
in interface javax.jms.Session
javax.jms.JMSException
protected String getDurableEndpointQueueName(String durableSubscriptionName)
protected void sendMessage(NevadoDestination destination, NevadoMessage message) throws javax.jms.JMSException
javax.jms.JMSException
protected NevadoMessage receiveMessage(NevadoDestination destination, long timeoutMs, boolean noLocal) throws javax.jms.JMSException, InterruptedException
javax.jms.JMSException
InterruptedException
public void acknowledgeMessage(NevadoMessage message) throws javax.jms.JMSException
javax.jms.JMSException
public void expireMessage(NevadoMessage message) throws javax.jms.JMSException
javax.jms.JMSException
protected void deleteMessage(NevadoMessage... messages) throws javax.jms.JMSException
javax.jms.JMSException
protected void resetMessage(NevadoMessage... messages)
public void setOverrideJMSDeliveryMode(Integer jmsDeliveryMode)
public void setOverrideJMSTTL(Long jmsTTL)
public void setOverrideJMSPriority(Integer jmsPriority)
public boolean isClosed()
protected NevadoConnection getConnection()
protected void start()
protected void stop()
protected void checkClosed() throws javax.jms.IllegalStateException
javax.jms.IllegalStateException
protected void setBreakSessionForTesting(boolean value)
Copyright © 2014. All Rights Reserved.