Пример #1
0
 /// <summary>Used internally. If overridden, call this method first. Only creates the up_handler thread
 /// if down_thread is true
 /// </summary>
 public virtual void  startUpHandler()
 {
     if (up_thread)
     {
         if (up_handler == null)
         {
             up_queue   = new Alachisoft.NCache.Common.DataStructures.Queue();
             up_handler = new UpHandler(up_queue, this);
             up_handler.Start();
         }
     }
 }
Пример #2
0
 /// <summary>Used internally. If overridden, call this method first. Only creates the up_handler thread
 /// if down_thread is true
 /// </summary>
 public virtual void  startUpHandler()
 {
     if (up_thread)
     {
         if (up_handler == null)
         {
             up_queue   = new Alachisoft.NCache.Common.DataStructures.Queue();
             up_handler = new UpHandler(up_queue, this);
             if (up_thread_prio >= 0)
             {
                 try
                 {
                     //up_handler.Priority = System.Threading.ThreadPriority.AboveNormal;
                 }
                 catch (System.Exception t)
                 {
                     stack.NCacheLog.Error("Protocol", "priority " + up_thread_prio + " could not be set for thread: " + t.StackTrace);
                 }
             }
             up_handler.Start();
         }
     }
 }
Пример #3
0
		/// <summary>Used internally. If overridden, call this method first. Only creates the up_handler thread
		/// if down_thread is true 
		/// </summary>
		public virtual void  startUpHandler()
		{
			if (up_thread)
			{
				if (up_handler == null)
				{
                    up_queue = new Alachisoft.NCache.Common.DataStructures.Queue();
					up_handler = new UpHandler(up_queue, this);
					up_handler.Start();
				}
			}
		}
Пример #4
0
        public override void startUpHandler()
        {
            if (up_thread)
            {

                if (_tokenSeekingUpHandler == null)
                {
                    _tokenMsgUpQueue = new Alachisoft.NCache.Common.DataStructures.Queue();
                    _tokenSeekingUpHandler = new UpHandler(_tokenMsgUpQueue, this, Name + ".token.UpHandler", 3);
                    if (up_thread_prio >= 0)
                    {
                        try
                        {
                            
                        }
                        catch (System.Exception t)
                        {
                            Stack.NCacheLog.Error("Protocol", "priority " + up_thread_prio + " could not be set for thread: " + t.StackTrace);
                        }
                    }
                    _tokenSeekingUpHandler.Start();
                }

                if (_sequencedMsgUpHandler == null)
                {
                    _sequenecedMsgUpQueue = new Alachisoft.NCache.Common.DataStructures.Queue();
                    _sequencedMsgUpHandler = new UpHandler(_sequenecedMsgUpQueue, this, Name + ".seq.UpHandler", 2);
                    if (up_thread_prio >= 0)
                    {
                        try
                        {
                            
                        }
                        catch (System.Exception t)
                        {
                            Stack.NCacheLog.Error("Protocol", "priority " + up_thread_prio + " could not be set for thread: " + t.StackTrace);
                        }
                    }
                    _sequencedMsgUpHandler.Start();
                }

                if (_sequencelessMsgUpHandler == null)
                {
                    _sequencelessMsgUpQueue = new Alachisoft.NCache.Common.DataStructures.Queue();
                    _sequencelessMsgUpHandler = new UpHandler(_sequencelessMsgUpQueue, this, Name + ".seqless.UpHandler", 1);
                    if (up_thread_prio >= 0)
                    {
                        try
                        {
                            
                        }
                        catch (System.Exception t)
                        {
                            Stack.NCacheLog.Error("Protocol", "priority " + up_thread_prio + " could not be set for thread: " + t.StackTrace);
                        }
                    }
                    _sequencelessMsgUpHandler.Start();
                }
            }
        }