Пример #1
0
        public Queue(string topic,int queueId)
        {
            Topic = topic;
            QueueId = queueId;
            Key = new QueueKey(topic, queueId);

            _jsonSerializer = ObjectContainer.Resolve<IJsonSerializer>();
            _chunkManager = new ChunkManager(
                "QueueChunk-" + Key.ToString(),
                BrokerController.Instance.Setting.
        }
Пример #2
0
        public Queue(string topic, int queueId)
        {
            Topic   = topic;
            QueueId = queueId;
            Key     = new QueueKey(topic, queueId);


            _chunkManager     = new ChunkManager("QueueChunk-" + Key.ToString(), BrokerService.Instance.Setting.QueueChunkConfig, BrokerService.Instance.Setting.IsMessageStoreMemoryMode, Topic + @"\" + QueueId);
            _chunkWriter      = new ChunkWriter(_chunkManager);
            _chunkReader      = new ChunkReader(_chunkManager, _chunkWriter);
            _queueSettingFile = Path.Combine(_chunkManager.ChunkPath, QueueSettingFileName);
        }
Пример #3
0
        public Queue(string topic, int queueId)
        {
            Topic   = topic;
            QueueId = queueId;
            Key     = new QueueKey(topic, queueId);

            _jsonSerializer   = ObjectContainer.Resolve <IJsonSerializer>();
            _chunkManager     = new ChunkManager(Key.ToString(), BrokerController.Instance.Setting.QueueChunkConfig, BrokerController.Instance.Setting.IsMessageStoreMemoryMode, Topic + @"\" + QueueId);
            _chunkWriter      = new ChunkWriter(_chunkManager);
            _chunkReader      = new ChunkReader(_chunkManager, _chunkWriter);
            _queueSettingFile = Path.Combine(_chunkManager.ChunkPath, QueueSettingFileName);
            _logger           = ObjectContainer.Resolve <ILoggerFactory>().Create(this.GetType().FullName);
        }
Пример #4
0
        public Queue(string topic, int queueId)
        {
            Topic = topic;
            QueueId = queueId;
            Key = new QueueKey(topic, queueId);

            _jsonSerializer = ObjectContainer.Resolve<IJsonSerializer>();
            _chunkManager = new ChunkManager("QueueChunk-" + Key.ToString(), BrokerController.Instance.Setting.QueueChunkConfig, BrokerController.Instance.Setting.IsMessageStoreMemoryMode, Topic + @"\" + QueueId);
            _chunkWriter = new ChunkWriter(_chunkManager);
            _chunkReader = new ChunkReader(_chunkManager, _chunkWriter);
            _queueSettingFile = Path.Combine(_chunkManager.ChunkPath, QueueSettingFileName);
            _logger = ObjectContainer.Resolve<ILoggerFactory>().Create(this.GetType().FullName);
        }