OSMQ
v2.0.1

osmq.clients
Class SubscriberCountManager

java.lang.Object
  extended byosmq.clients.SubscriberCountManager
All Implemented Interfaces:
MessageListener

public class SubscriberCountManager
extends java.lang.Object
implements MessageListener


Constructor Summary
SubscriberCountManager()
           
 
Method Summary
 long getAddressedCount()
          Returns the total number of messages received that were addressed to this clientid, i.e., the include a recipient identifier in the message.
 long getAnonymousCount()
          Returns the total number of topical messages received that were available to all subscribers of that topic.
 long getMessageCount()
          Returns the total number of messages received by this session, whether they were topical or recipient based.
 void onMessage(Message m)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SubscriberCountManager

public SubscriberCountManager()
Method Detail

onMessage

public void onMessage(Message m)
Specified by:
onMessage in interface MessageListener

getAddressedCount

public long getAddressedCount()
Returns the total number of messages received that were addressed to this clientid, i.e., the include a recipient identifier in the message.


getAnonymousCount

public long getAnonymousCount()
Returns the total number of topical messages received that were available to all subscribers of that topic. (This does not include messages that included a recipient identifier.)


getMessageCount

public long getMessageCount()
Returns the total number of messages received by this session, whether they were topical or recipient based.


(c) 2000 - 2003 MQue Systems
All Rights Reserved