Esempio n. 1
0
 public void Dispose()
 {
     if (_msgQueue != null && !_msgQueue.Closed)
     {
         _msgQueue.close(true);
         _msgQueue = null;
     }
 }
Esempio n. 2
0
        public void Init()
        {
            if (_nagglingEnabled)
            {
                _msgQueue       = new Alachisoft.NCache.Common.DataStructures.Queue();
                _priNagglingMgr = new NagglingManager(this, this.PrimaryClientSocket, _msgQueue, _nagglingSize, _syncLock);
                _priNagglingMgr.Start();

                if (SupportDualSocket)
                {
                    _secNagglingMgr = new NagglingManager(this, this.SecondaryClientSocket, _msgQueue, _nagglingSize, _syncLock);
                    _secNagglingMgr.Start();
                }
            }

            StartThread();
        }
Esempio n. 3
0
        public void Dispose()
        {
            if (_msgQueue != null && !_msgQueue.Closed)
            {
                _msgQueue.close(true);
                _msgQueue = null;
            }

            try
            {
                if (_priNagglingMgr != null && _priNagglingMgr.IsAlive)
                {
                    _priNagglingMgr.Abort();
                }

                if (_secNagglingMgr != null && _secNagglingMgr.IsAlive)
                {
                    _secNagglingMgr.Abort();
                }
            }
            catch (Exception) { }
        }
Esempio n. 4
0
        public void Init()
        {
            if (_nagglingEnabled)
            {
                _msgQueue = new Alachisoft.NCache.Common.DataStructures.Queue();
                _priNagglingMgr = new NagglingManager(this, this.PrimaryClientSocket, _msgQueue, _nagglingSize, _syncLock);
                _priNagglingMgr.Start();

                if (SupportDualSocket)
                {
                    _secNagglingMgr = new NagglingManager(this, this.SecondaryClientSocket, _msgQueue, _nagglingSize, _syncLock);
                    _secNagglingMgr.Start();
                }
            }

            StartThread();
        }
Esempio n. 5
0
        public void Dispose()
        {
            if (_msgQueue != null && !_msgQueue.Closed)
            {
                _msgQueue.close(true);
                _msgQueue = null;
            }

            try
            {
                if (_priNagglingMgr != null && _priNagglingMgr.IsAlive)
                {
                    _priNagglingMgr.Abort();
                }

                if (_secNagglingMgr != null && _secNagglingMgr.IsAlive)
                {
                    _secNagglingMgr.Abort();
                }
            }
            catch (Exception) { }
        }