Joram 4.3.14

org.objectweb.joram.mom.dest
Interface QueueImplMBean

All Superinterfaces:
DestinationImplMBean
All Known Implementing Classes:
BridgeQueueImpl, ClusterQueueImpl, DeadMQueueImpl, 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

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

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

Parameters:
The - threshold value to be set (-1 for unsetting previous value).

getMessageCounter

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

Returns:
The number of received messages.

getWaitingRequestCount

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

Returns:
The number of waiting requests.

getPendingMessageCount

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

Returns:
The number of pending messages.

getDeliveredMessageCount

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

Returns:
The number of messages delivered.

getNbMaxMsg

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

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 4.3.14

Copyright © 2005 Scalagent - All rights reserved