当前页面:
在线文档首页 >
JBoss 4.0.1 sp1 messaging API Documentation 英文版文档
SelectorPersistentQueue (JBoss Messaging API) - JBoss 4.0.1 sp1 messaging API Documentation 英文版文档
org.jboss.mq.server
Class SelectorPersistentQueue
java.lang.Object
org.jboss.mq.server.BasicQueue
org.jboss.mq.server.PersistentQueue
org.jboss.mq.server.SelectorPersistentQueue
- public class SelectorPersistentQueue
- extends PersistentQueue
This class adds a selector to a persistent queue.
Factored out of JMSTopic.
- Author:
- Adrian Brock (Adrian.Brock@HappeningTimes.com)
Methods inherited from class org.jboss.mq.server.BasicQueue |
acknowledge, addReceiver, addSubscriber, addToReceivers, browse, clearEvent, clearEvents, createMessageCounter, dropMessage, dropMessage, getDescription, getMessageCounter, getQueueDepth, getReceivers, getReceiversCount, getScheduledMessageCount, isInUse, nackMessages, queueMessageForSending, receive, removeAllMessages, removeReceiver, removeSubscriber, restoreMessage, setupMessageAcknowledgement, stop, toString |
SelectorPersistentQueue
public SelectorPersistentQueue(JMSDestinationManager server,
SpyTopic dstopic,
String selector,
BasicQueueParameters parameters)
throws javax.jms.JMSException
- Create a new persistent queue with a selector
- Parameters:
server
- the destination managerdstopic
- the topic with a durable subscriptionselector
- the selector string
- Throws:
javax.jms.JMSException
- for an error
addMessage
public void addMessage(MessageReference mesRef,
Tx txId)
throws javax.jms.JMSException
- Filters the message with the selector before adding to the queue
- Overrides:
addMessage
in class PersistentQueue
- Parameters:
mesRef
- the messagetxId
- the transaction
- Throws:
javax.jms.JMSException
- for an error
Copyright © 2002 JBoss Group, LLC. All Rights Reserved.