static RedoMessageBusiness() { m_threadDic = new Dictionary <string, Thread>(); m_pushMessageBus = new PushMessageBusiness(RedoServiceSetting.AutoFlushSendMessage); m_scanConditionDic = new Dictionary <string, RedoServiceSetting.ScanSetting>(); InitMessagePriorityScanCondition(); }
public BuildMessageBusiness() { _notifyMessageBus = new NotifyMessageBusiness(); _pushMessageBus = new PushMessageBusiness(BuilderServiceSetting.AutoFlushSendMessage); _notifySettingBus = new NotifyInterfaceSettingBusiness(); if (BuilderServiceSetting.IsOpenBatchSaveNotifyMessage) { _saveNotifyPool = new DataBufferPool(new WaitCallback(BatchSaveNotifyMessage), BuilderServiceSetting.AutoFlushNotifyMessage, false); } if (BuilderServiceSetting.IsOpenBatchSavePushMessage) { _savePushPool = new DataBufferPool(new WaitCallback(BatchSavePushMessage), BuilderServiceSetting.AutoFlushPushMessage, false); } if (BuilderServiceSetting.IsOpenBatchReceiveHighMessage) { _highPool = new DataBufferPool(new WaitCallback(BuildBufferMessage), BuilderServiceSetting.AutoFlushReceiveHighMessage, false); } if (BuilderServiceSetting.IsOpenBatchReceiveMiddleMessage) { _middlePool = new DataBufferPool(new WaitCallback(BuildBufferMessage), BuilderServiceSetting.AutoFlushReceiveMiddleMessage, false); } if (BuilderServiceSetting.IsOpenBatchReceiveNormalMessage) { _normalPool = new DataBufferPool(new WaitCallback(BuildBufferMessage), BuilderServiceSetting.AutoFlushReceiveNormalMessage, false); } if (BuilderServiceSetting.IsOpenBatchReceiveLowMessage) { _lowPool = new DataBufferPool(new WaitCallback(BuildBufferMessage), BuilderServiceSetting.AutoFlushReceiveLowMessage, false); } _repeatSavePool = new DataBufferPool(new WaitCallback(RepeatSaveMessage), 5, false); }
public SendMessageBusiness() { _pushMessageBus = new PushMessageBusiness(); _pushSettingBus = new NotifyInterfaceSettingBusiness(); if (SendServiceSetting.IsOpenBatchSendHighMessage) { _highPool = new DataBufferPool(new WaitCallback(SendBatch), SendServiceSetting.AutoFlushSendHighMessage, false); } if (SendServiceSetting.IsOpenBatchSendMiddleMessage) { _middlePool = new DataBufferPool(new WaitCallback(SendBatch), SendServiceSetting.AutoFlushSendMiddleMessage, false); } if (SendServiceSetting.IsOpenBatchSendNormalMessage) { _normalPool = new DataBufferPool(new WaitCallback(SendBatch), SendServiceSetting.AutoFlushSendNormalMessage, false); } if (SendServiceSetting.IsOpenBatchSendLowMessage) { _lowPool = new DataBufferPool(new WaitCallback(SendBatch), SendServiceSetting.AutoFlushSendLowMessage, false); } _repeatUpdatePool = new DataBufferPool(new WaitCallback(RepeatUpdatePushMessage), 10, false); }