org.jboss.mq.server
Class JMSDestination
java.lang.Object
org.jboss.mq.server.JMSDestination
- Direct Known Subclasses:
- JMSQueue, JMSTopic
public abstract class JMSDestination
- extends Object
This class is a message queue which is stored (hashed by Destination) on the
JMS provider
- Version:
- $Revision: 57198 $
- Author:
- Norbert Lataille (Norbert.Lataille@m4x.org), Hiram Chirino (Cojonudo14@hotmail.com), David Maplesden (David.Maplesden@orion.co.nz), Adrian Brock (adrian@jboss.com)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
parameters
public BasicQueueParameters parameters
- The basic queue parameters
getSpyDestination
public SpyDestination getSpyDestination()
addSubscriber
public abstract void addSubscriber(Subscription sub)
throws javax.jms.JMSException
- Throws:
javax.jms.JMSException
removeSubscriber
public abstract void removeSubscriber(Subscription sub)
throws javax.jms.JMSException
- Throws:
javax.jms.JMSException
nackMessages
public abstract void nackMessages(Subscription sub)
throws javax.jms.JMSException
- Throws:
javax.jms.JMSException
receive
public abstract SpyMessage receive(Subscription sub,
boolean wait)
throws javax.jms.JMSException
- Throws:
javax.jms.JMSException
addReceiver
public abstract void addReceiver(Subscription sub)
throws javax.jms.JMSException
- Throws:
javax.jms.JMSException
removeReceiver
public abstract void removeReceiver(Subscription sub)
restoreMessage
public abstract void restoreMessage(MessageReference message)
restoreMessage
public void restoreMessage(SpyMessage message)
restoreMessage
public abstract void restoreMessage(SpyMessage message,
Tx tx,
int type)
- Restore a message
- Parameters:
message
- the messagetx
- any transactiontype
- the type of restoration
isInUse
public abstract boolean isInUse()
close
public abstract void close()
throws javax.jms.JMSException
- Throws:
javax.jms.JMSException
removeAllMessages
public abstract void removeAllMessages()
throws javax.jms.JMSException
- Throws:
javax.jms.JMSException
acknowledge
public abstract void acknowledge(AcknowledgementRequest req,
Subscription sub,
Tx txId)
throws javax.jms.JMSException
- Parameters:
req
- org.jboss.mq.AcknowledgementRequestsub
- org.jboss.mq.SubscriptiontxId
- org.jboss.mq.pm.Tx
- Throws:
javax.jms.JMSException
- The exception description.
addMessage
public abstract void addMessage(SpyMessage mes,
Tx txId)
throws javax.jms.JMSException
- Parameters:
mes
- org.jboss.mq.SpyMessagetxId
- org.jboss.mq.pm.Tx
- Throws:
javax.jms.JMSException
- The exception description.
getMessageCounter
public abstract MessageCounter[] getMessageCounter()
nextSharedMessageId
protected static long nextSharedMessageId()
updateSharedNextMessageId
protected static void updateSharedNextMessageId(SpyMessage message)
nextMessageId
protected long nextMessageId()
updateNextMessageId
protected void updateNextMessageId(SpyMessage message)
Copyright © 2002 JBoss Group, LLC. All Rights Reserved.