Beispiel #1
0
        public OrderedDictionary GetTopicWiseMessagIds(bool includeEventMessages)
        {
            OrderedDictionary topicWiseMessages = new OrderedDictionary();

            foreach (string topic in _topicWiseMessageIds.Keys)
            {
                if (topic == null)
                {
                    continue;
                }

                if (TopicConstant.AllEventTopics.Contains(topic) && !includeEventMessages)
                {
                    continue;
                }

                TopicWiseBucketStatistics topicStats = _topicWiseMessageIds[topic] as TopicWiseBucketStatistics;

                if (topicStats != null)
                {
                    topicWiseMessages.Add(topic, topicStats.GetMessageIds());
                }
            }

            return(topicWiseMessages);
        }
Beispiel #2
0
        public OrderedDictionary GetTopicWiseMessagIds()
        {
            OrderedDictionary topicWiseMessages = new OrderedDictionary();

            foreach (string topic in _topicWiseMessageIds.Keys)
            {
                TopicWiseBucketStatistics topicStats = _topicWiseMessageIds[topic] as TopicWiseBucketStatistics;

                if (topicStats != null)
                {
                    topicWiseMessages.Add(topic, topicStats.GetMessageIds());
                }
            }

            return(topicWiseMessages);
        }