Joram ${version}

org.objectweb.joram.mom.dest
Interface QueueImplMBean

All Superinterfaces:
DestinationImplMBean
All Known Implementing Classes:
QueueImpl

public interface QueueImplMBean
extends DestinationImplMBean


Method Summary
 int getDeliveredMessageCount()
          Returns the number of messages delivered and waiting for acknowledge.
 int getMessageCounter()
          Returns the number of messages received since creation time.
 int getNbMaxMsg()
          Returns the maximum number of message for the destination.
 int getPendingMessageCount()
          Returns the number of pending messages in the queue.
 int getThreshold()
          Returns the threshold value of this queue, -1 if not set.
 int getWaitingRequestCount()
          Returns the number of waiting requests in the queue.
 void setNbMaxMsg(int nbMaxMsg)
          Sets the maximum number of message for the destination.
 void setThreshold(int threshold)
          Sets or unsets the threshold for this queue.
 
Methods inherited from interface org.objectweb.joram.mom.dest.DestinationImplMBean
getCreationDate, getCreationTimeInMillis, getDestinationId, getDMQId, getNbMsgsDeliverSinceCreation, getNbMsgsReceiveSinceCreation, getNbMsgsSendToDMQSinceCreation, getRight, getRights, isFreeReading, isFreeWriting, setFreeReading, setFreeWriting, toString
 

Method Detail

getThreshold

public int getThreshold()
Returns the threshold value of this queue, -1 if not set.

Returns:
the threshold value of this queue; -1 if not set.

setThreshold

public void setThreshold(int threshold)
Sets or unsets the threshold for this queue.


getMessageCounter

public int getMessageCounter()
Returns the number of messages received since creation time.

Returns:
The number of received messages.

getWaitingRequestCount

public int getWaitingRequestCount()
Returns the number of waiting requests in the queue.

Returns:
The number of waiting requests.

getPendingMessageCount

public int getPendingMessageCount()
Returns the number of pending messages in the queue.

Returns:
The number of pending messages.

getDeliveredMessageCount

public int getDeliveredMessageCount()
Returns the number of messages delivered and waiting for acknowledge.

Returns:
The number of messages delivered.

getNbMaxMsg

public int getNbMaxMsg()
Returns the maximum number of message for the destination. If the limit is unset the method returns -1.

Returns:
the maximum number of message for subscription if set; -1 otherwise.

setNbMaxMsg

public void setNbMaxMsg(int nbMaxMsg)
Sets the maximum number of message for the destination.

Parameters:
nbMaxMsg - the maximum number of message (-1 set no limit).

Joram ${version}

Copyright © 2005 Scalagent - All rights reserved