Example #1
0
        public QueueHandler GetQueue(string queueName)
        {
            QueueHandler queue = null;

            this.queueDictionary.TryGetValue(queueName, out queue);
            return(queue);
        }
Example #2
0
        //private void InitializeJournal()
        //{
        //    //this.journalManager = JournalManager.GetJournalManager(this.logManager, this.dataPath);
        //    //this.journalEnable = !(this.journalManager is JournalDisabled);
        //}

        //private void LoadJournal()
        //{
        //    //this.journalManager.LoadJournal(this.JournalBlockItem);
        //}

        //private void JournalBlockItem(JournalBlockType blockType, BufferSegment bufferSegment)
        //{
        //}

        public QueueHandler AddQueue(string queueName)
        {
            var handler = new QueueHandler(++this.queueId);

            this.queueDictionary.Add(queueName, handler);
            return(handler);
        }