|
|||||||||
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
public class AMQSession
Field Summary | |
---|---|
protected static boolean |
DEFAULT_IMMEDIATE
Default value for immediate flag used by producers created by this session is false, i.e. |
protected static boolean |
DEFAULT_MANDATORY
Default value for mandatory flag used by producers created by this sessio is true, i.e. |
static int |
DEFAULT_PREFETCH_HIGH_MARK
|
static int |
DEFAULT_PREFETCH_LOW_MARK
|
Fields inherited from class org.apache.qpid.client.Closeable |
---|
_closed |
Fields inherited from interface org.apache.qpid.jms.Session |
---|
NO_ACKNOWLEDGE, PRE_ACKNOWLEDGE |
Fields inherited from interface javax.jms.Session |
---|
AUTO_ACKNOWLEDGE, CLIENT_ACKNOWLEDGE, DUPS_OK_ACKNOWLEDGE, SESSION_TRANSACTED |
Fields inherited from interface javax.jms.Session |
---|
AUTO_ACKNOWLEDGE, CLIENT_ACKNOWLEDGE, DUPS_OK_ACKNOWLEDGE, SESSION_TRANSACTED |
Fields inherited from interface javax.jms.Session |
---|
AUTO_ACKNOWLEDGE, CLIENT_ACKNOWLEDGE, DUPS_OK_ACKNOWLEDGE, SESSION_TRANSACTED |
Method Summary | |
---|---|
void |
acknowledgeMessage(long deliveryTag,
boolean multiple)
Acknowledge a message or several messages. |
void |
close()
|
void |
closed(java.lang.Throwable e)
Called when the server initiates the closure of the session unilaterally. |
void |
commit()
|
javax.jms.QueueBrowser |
createBrowser(javax.jms.Queue queue)
|
javax.jms.QueueBrowser |
createBrowser(javax.jms.Queue queue,
java.lang.String messageSelector)
|
javax.jms.BytesMessage |
createBytesMessage()
|
javax.jms.MessageConsumer |
createConsumer(javax.jms.Destination destination)
|
javax.jms.MessageConsumer |
createConsumer(javax.jms.Destination destination,
int prefetch,
boolean noLocal,
boolean exclusive,
java.lang.String selector)
|
javax.jms.MessageConsumer |
createConsumer(javax.jms.Destination destination,
int prefetch,
boolean noLocal,
boolean exclusive,
java.lang.String selector,
org.apache.qpid.framing.FieldTable rawSelector)
|
javax.jms.MessageConsumer |
createConsumer(javax.jms.Destination destination,
int prefetchHigh,
int prefetchLow,
boolean noLocal,
boolean exclusive,
java.lang.String selector)
|
javax.jms.MessageConsumer |
createConsumer(javax.jms.Destination destination,
int prefetchHigh,
int prefetchLow,
boolean noLocal,
boolean exclusive,
java.lang.String selector,
org.apache.qpid.framing.FieldTable rawSelector)
|
javax.jms.MessageConsumer |
createConsumer(javax.jms.Destination destination,
java.lang.String messageSelector)
|
javax.jms.MessageConsumer |
createConsumer(javax.jms.Destination destination,
java.lang.String messageSelector,
boolean noLocal)
|
protected javax.jms.MessageConsumer |
createConsumerImpl(javax.jms.Destination destination,
int prefetchHigh,
int prefetchLow,
boolean noLocal,
boolean exclusive,
java.lang.String selector,
org.apache.qpid.framing.FieldTable rawSelector)
|
javax.jms.TopicSubscriber |
createDurableSubscriber(javax.jms.Topic topic,
java.lang.String name)
Note, currently this does not handle reuse of the same name with different topics correctly. |
javax.jms.TopicSubscriber |
createDurableSubscriber(javax.jms.Topic topic,
java.lang.String name,
java.lang.String messageSelector,
boolean noLocal)
Note, currently this does not handle reuse of the same name with different topics correctly. |
javax.jms.MapMessage |
createMapMessage()
|
javax.jms.Message |
createMessage()
|
javax.jms.ObjectMessage |
createObjectMessage()
|
javax.jms.ObjectMessage |
createObjectMessage(java.io.Serializable object)
|
javax.jms.MessageProducer |
createProducer(javax.jms.Destination destination)
|
javax.jms.MessageProducer |
createProducer(javax.jms.Destination destination,
boolean immediate)
|
javax.jms.MessageProducer |
createProducer(javax.jms.Destination destination,
boolean mandatory,
boolean immediate)
|
javax.jms.MessageProducer |
createProducer(javax.jms.Destination destination,
boolean mandatory,
boolean immediate,
boolean waitUntilSent)
|
javax.jms.TopicPublisher |
createPublisher(javax.jms.Topic topic)
|
javax.jms.Queue |
createQueue(java.lang.String queueName)
|
javax.jms.QueueReceiver |
createQueueReceiver(javax.jms.Destination destination)
Creates a QueueReceiver |
javax.jms.QueueReceiver |
createQueueReceiver(javax.jms.Destination destination,
java.lang.String messageSelector)
Creates a QueueReceiver using a message selector |
javax.jms.QueueReceiver |
createReceiver(javax.jms.Queue queue)
Creates a QueueReceiver wrapping a MessageConsumer |
javax.jms.QueueReceiver |
createReceiver(javax.jms.Queue queue,
java.lang.String messageSelector)
Creates a QueueReceiver wrapping a MessageConsumer using a message selector |
javax.jms.QueueSender |
createSender(javax.jms.Queue queue)
|
javax.jms.StreamMessage |
createStreamMessage()
|
javax.jms.TopicSubscriber |
createSubscriber(javax.jms.Topic topic)
Creates a non-durable subscriber |
javax.jms.TopicSubscriber |
createSubscriber(javax.jms.Topic topic,
java.lang.String messageSelector,
boolean noLocal)
Creates a non-durable subscriber with a message selector |
javax.jms.TemporaryQueue |
createTemporaryQueue()
|
javax.jms.TemporaryTopic |
createTemporaryTopic()
|
javax.jms.TextMessage |
createTextMessage()
|
javax.jms.TextMessage |
createTextMessage(java.lang.String text)
|
javax.jms.Topic |
createTopic(java.lang.String topicName)
|
void |
declareExchange(java.lang.String name,
java.lang.String type)
|
void |
declareExchangeSynch(java.lang.String name,
java.lang.String type)
|
int |
getAcknowledgeMode()
|
int |
getChannelId()
|
int |
getDefaultPrefetch()
|
int |
getDefaultPrefetchHigh()
|
int |
getDefaultPrefetchLow()
|
javax.jms.MessageListener |
getMessageListener()
|
boolean |
getTransacted()
|
void |
messageReceived(UnprocessedMessage message)
Invoked by the MINA IO thread (indirectly) when a message is received from the transport. |
void |
recover()
Asks the broker to resend all unacknowledged messages for the session. |
void |
rollback()
|
void |
run()
|
void |
setMessageListener(javax.jms.MessageListener listener)
|
void |
unsubscribe(java.lang.String name)
|
Methods inherited from class org.apache.qpid.client.Closeable |
---|
checkNotClosed, isClosed |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int DEFAULT_PREFETCH_HIGH_MARK
public static final int DEFAULT_PREFETCH_LOW_MARK
protected static final boolean DEFAULT_IMMEDIATE
protected static final boolean DEFAULT_MANDATORY
Method Detail |
---|
public javax.jms.BytesMessage createBytesMessage() throws javax.jms.JMSException
createBytesMessage
in interface javax.jms.Session
javax.jms.JMSException
public javax.jms.MapMessage createMapMessage() throws javax.jms.JMSException
createMapMessage
in interface javax.jms.Session
javax.jms.JMSException
public javax.jms.Message createMessage() throws javax.jms.JMSException
createMessage
in interface javax.jms.Session
javax.jms.JMSException
public javax.jms.ObjectMessage createObjectMessage() throws javax.jms.JMSException
createObjectMessage
in interface javax.jms.Session
javax.jms.JMSException
public javax.jms.ObjectMessage createObjectMessage(java.io.Serializable object) throws javax.jms.JMSException
createObjectMessage
in interface javax.jms.Session
javax.jms.JMSException
public javax.jms.StreamMessage createStreamMessage() throws javax.jms.JMSException
createStreamMessage
in interface javax.jms.Session
javax.jms.JMSException
public javax.jms.TextMessage createTextMessage() throws javax.jms.JMSException
createTextMessage
in interface javax.jms.Session
javax.jms.JMSException
public javax.jms.TextMessage createTextMessage(java.lang.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
close
in class Closeable
javax.jms.JMSException
public void closed(java.lang.Throwable e)
e
- the exception that caused this session to be closed. Null causes thepublic 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 listener) throws javax.jms.JMSException
setMessageListener
in interface javax.jms.Session
javax.jms.JMSException
public void run()
run
in interface java.lang.Runnable
run
in interface javax.jms.Session
public javax.jms.MessageProducer createProducer(javax.jms.Destination destination, boolean mandatory, boolean immediate, boolean waitUntilSent) throws javax.jms.JMSException
javax.jms.JMSException
public javax.jms.MessageProducer createProducer(javax.jms.Destination destination, boolean mandatory, boolean immediate) throws javax.jms.JMSException
javax.jms.JMSException
public javax.jms.MessageProducer createProducer(javax.jms.Destination destination, boolean immediate) throws javax.jms.JMSException
javax.jms.JMSException
public javax.jms.MessageProducer createProducer(javax.jms.Destination destination) throws javax.jms.JMSException
createProducer
in interface javax.jms.Session
javax.jms.JMSException
public javax.jms.QueueReceiver createQueueReceiver(javax.jms.Destination destination) throws javax.jms.JMSException
destination
-
javax.jms.JMSException
public javax.jms.QueueReceiver createQueueReceiver(javax.jms.Destination destination, java.lang.String messageSelector) throws javax.jms.JMSException
destination
- messageSelector
-
javax.jms.JMSException
public javax.jms.MessageConsumer createConsumer(javax.jms.Destination destination) throws javax.jms.JMSException
createConsumer
in interface javax.jms.Session
javax.jms.JMSException
public javax.jms.MessageConsumer createConsumer(javax.jms.Destination destination, java.lang.String messageSelector) throws javax.jms.JMSException
createConsumer
in interface javax.jms.Session
javax.jms.JMSException
public javax.jms.MessageConsumer createConsumer(javax.jms.Destination destination, java.lang.String messageSelector, boolean noLocal) throws javax.jms.JMSException
createConsumer
in interface javax.jms.Session
javax.jms.JMSException
public javax.jms.MessageConsumer createConsumer(javax.jms.Destination destination, int prefetch, boolean noLocal, boolean exclusive, java.lang.String selector) throws javax.jms.JMSException
javax.jms.JMSException
public javax.jms.MessageConsumer createConsumer(javax.jms.Destination destination, int prefetchHigh, int prefetchLow, boolean noLocal, boolean exclusive, java.lang.String selector) throws javax.jms.JMSException
javax.jms.JMSException
public javax.jms.MessageConsumer createConsumer(javax.jms.Destination destination, int prefetch, boolean noLocal, boolean exclusive, java.lang.String selector, org.apache.qpid.framing.FieldTable rawSelector) throws javax.jms.JMSException
javax.jms.JMSException
public javax.jms.MessageConsumer createConsumer(javax.jms.Destination destination, int prefetchHigh, int prefetchLow, boolean noLocal, boolean exclusive, java.lang.String selector, org.apache.qpid.framing.FieldTable rawSelector) throws javax.jms.JMSException
javax.jms.JMSException
protected javax.jms.MessageConsumer createConsumerImpl(javax.jms.Destination destination, int prefetchHigh, int prefetchLow, boolean noLocal, boolean exclusive, java.lang.String selector, org.apache.qpid.framing.FieldTable rawSelector) throws javax.jms.JMSException
javax.jms.JMSException
public void declareExchange(java.lang.String name, java.lang.String type)
public void declareExchangeSynch(java.lang.String name, java.lang.String type) throws org.apache.qpid.AMQException
org.apache.qpid.AMQException
public javax.jms.Queue createQueue(java.lang.String queueName) throws javax.jms.JMSException
createQueue
in interface javax.jms.QueueSession
createQueue
in interface javax.jms.Session
javax.jms.JMSException
public javax.jms.QueueReceiver createReceiver(javax.jms.Queue queue) throws javax.jms.JMSException
createReceiver
in interface javax.jms.QueueSession
queue
-
javax.jms.JMSException
public javax.jms.QueueReceiver createReceiver(javax.jms.Queue queue, java.lang.String messageSelector) throws javax.jms.JMSException
createReceiver
in interface javax.jms.QueueSession
queue
- messageSelector
-
javax.jms.JMSException
public javax.jms.QueueSender createSender(javax.jms.Queue queue) throws javax.jms.JMSException
createSender
in interface javax.jms.QueueSession
javax.jms.JMSException
public javax.jms.Topic createTopic(java.lang.String topicName) throws javax.jms.JMSException
createTopic
in interface javax.jms.Session
createTopic
in interface javax.jms.TopicSession
javax.jms.JMSException
public javax.jms.TopicSubscriber createSubscriber(javax.jms.Topic topic) throws javax.jms.JMSException
createSubscriber
in interface javax.jms.TopicSession
topic
-
javax.jms.JMSException
public javax.jms.TopicSubscriber createSubscriber(javax.jms.Topic topic, java.lang.String messageSelector, boolean noLocal) throws javax.jms.JMSException
createSubscriber
in interface javax.jms.TopicSession
topic
- messageSelector
- noLocal
-
javax.jms.JMSException
public javax.jms.TopicSubscriber createDurableSubscriber(javax.jms.Topic topic, java.lang.String name) throws javax.jms.JMSException
createDurableSubscriber
in interface javax.jms.Session
createDurableSubscriber
in interface javax.jms.TopicSession
javax.jms.JMSException
public javax.jms.TopicSubscriber createDurableSubscriber(javax.jms.Topic topic, java.lang.String name, java.lang.String messageSelector, boolean noLocal) throws javax.jms.JMSException
createDurableSubscriber
in interface javax.jms.Session
createDurableSubscriber
in interface javax.jms.TopicSession
javax.jms.JMSException
public javax.jms.TopicPublisher createPublisher(javax.jms.Topic topic) throws javax.jms.JMSException
createPublisher
in interface javax.jms.TopicSession
javax.jms.JMSException
public javax.jms.QueueBrowser createBrowser(javax.jms.Queue queue) throws javax.jms.JMSException
createBrowser
in interface javax.jms.QueueSession
createBrowser
in interface javax.jms.Session
javax.jms.JMSException
public javax.jms.QueueBrowser createBrowser(javax.jms.Queue queue, java.lang.String messageSelector) throws javax.jms.JMSException
createBrowser
in interface javax.jms.QueueSession
createBrowser
in interface javax.jms.Session
javax.jms.JMSException
public javax.jms.TemporaryQueue createTemporaryQueue() throws javax.jms.JMSException
createTemporaryQueue
in interface javax.jms.QueueSession
createTemporaryQueue
in interface javax.jms.Session
javax.jms.JMSException
public javax.jms.TemporaryTopic createTemporaryTopic() throws javax.jms.JMSException
createTemporaryTopic
in interface javax.jms.Session
createTemporaryTopic
in interface javax.jms.TopicSession
javax.jms.JMSException
public void unsubscribe(java.lang.String name) throws javax.jms.JMSException
unsubscribe
in interface javax.jms.Session
unsubscribe
in interface javax.jms.TopicSession
javax.jms.JMSException
public void messageReceived(UnprocessedMessage message)
message
- the message that has been receivedpublic void acknowledgeMessage(long deliveryTag, boolean multiple)
deliveryTag
- the tag of the last message to be acknowledgedmultiple
- if true will acknowledge all messages up to and including the one specified by the
delivery tagpublic int getDefaultPrefetch()
public int getDefaultPrefetchHigh()
public int getDefaultPrefetchLow()
public int getChannelId()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |