当前页面:
在线文档首页 >
JBoss 3.2.7 messaging API Documentation 英文版文档
JMSQueue (JBoss Messaging API) - JBoss 3.2.7 messaging API Documentation 英文版文档
org.jboss.mq.server
Class JMSQueue
java.lang.Object
org.jboss.mq.server.JMSDestination
org.jboss.mq.server.JMSQueue
- public class JMSQueue
- extends JMSDestination
This class is a message queue which is stored (hashed by Destination) on the
JMS provider
- Version:
- $Revision: 1.12.2.13 $
- Author:
- Norbert Lataille (Norbert.Lataille@m4x.org), Hiram Chirino (Cojonudo14@hotmail.com), David Maplesden (David.Maplesden@orion.co.nz)
queue
public BasicQueue queue
JMSQueue
public JMSQueue(SpyDestination dest,
ClientConsumer temporary,
JMSDestinationManager server,
BasicQueueParameters parameters)
throws javax.jms.JMSException
addSubscriber
public void addSubscriber(Subscription sub)
throws javax.jms.JMSException
- Specified by:
addSubscriber
in class JMSDestination
- Throws:
javax.jms.JMSException
removeSubscriber
public void removeSubscriber(Subscription sub)
- Specified by:
removeSubscriber
in class JMSDestination
nackMessages
public void nackMessages(Subscription sub)
- Specified by:
nackMessages
in class JMSDestination
addReceiver
public void addReceiver(Subscription sub)
throws javax.jms.JMSException
- Specified by:
addReceiver
in class JMSDestination
- Throws:
javax.jms.JMSException
removeReceiver
public void removeReceiver(Subscription sub)
- Specified by:
removeReceiver
in class JMSDestination
restoreMessage
public void restoreMessage(MessageReference messageRef)
- Specified by:
restoreMessage
in class JMSDestination
restoreMessage
public void restoreMessage(SpyMessage message)
- Specified by:
restoreMessage
in class JMSDestination
browse
public SpyMessage[] browse(String selector)
throws javax.jms.JMSException
- Throws:
javax.jms.JMSException
toString
public String toString()
acknowledge
public void acknowledge(AcknowledgementRequest req,
Subscription sub,
Tx txId)
throws javax.jms.JMSException
- Specified by:
acknowledge
in class JMSDestination
- Parameters:
req
- org.jboss.mq.AcknowledgementRequestsub
- org.jboss.mq.SubscriptiontxId
- org.jboss.mq.pm.Tx
- Throws:
javax.jms.JMSException
- The exception description.
addMessage
public void addMessage(SpyMessage mes,
Tx txId)
throws javax.jms.JMSException
- Specified by:
addMessage
in class JMSDestination
- Parameters:
mes
- org.jboss.mq.SpyMessagetxId
- org.jboss.mq.pm.Tx
- Throws:
javax.jms.JMSException
- The exception description.
receive
public SpyMessage receive(Subscription sub,
boolean wait)
throws javax.jms.JMSException
- Specified by:
receive
in class JMSDestination
- Throws:
javax.jms.JMSException
isInUse
public boolean isInUse()
- Specified by:
isInUse
in class JMSDestination
close
public void close()
throws javax.jms.JMSException
- Specified by:
close
in class JMSDestination
- Throws:
javax.jms.JMSException
removeAllMessages
public void removeAllMessages()
throws javax.jms.JMSException
- Specified by:
removeAllMessages
in class JMSDestination
- Throws:
javax.jms.JMSException
- See Also:
JMSDestination#destroy()
getMessageCounter
public MessageCounter[] getMessageCounter()
- Get message counter of internal queue
- Specified by:
getMessageCounter
in class JMSDestination
- Returns:
- MessageCounter[] internal queue message counter
Copyright © 2002 JBoss Group, LLC. All Rights Reserved.