예제 #1
0
 remove(RetryTask task)
 {
     lock (this)
     {
         return(_requests.Remove(task));
     }
 }
예제 #2
0
 public bool remove(RetryTask task)
 {
     lock(this)
     {
         return _requests.Remove(task);
     }
 }
예제 #3
0
 public void add(OutgoingAsync outAsync, int interval)
 {
     lock(this)
     {
         RetryTask task = new RetryTask(this, outAsync);
         _instance.timer().schedule(task, interval);
         _requests.Add(task, null);
     }
 }
예제 #4
0
 public void add(OutgoingAsync outAsync, int interval)
 {
     lock (this)
     {
         RetryTask task = new RetryTask(this, outAsync);
         _instance.timer().schedule(task, interval);
         _requests.Add(task, null);
     }
 }
예제 #5
0
 public void add(ProxyOutgoingAsyncBase outAsync, int interval)
 {
     lock (this)
     {
         if (_communicator == null)
         {
             throw new Ice.CommunicatorDestroyedException();
         }
         RetryTask task = new RetryTask(_communicator, this, outAsync);
         outAsync.cancelable(task); // This will throw if the request is canceled.
         _communicator.timer().schedule(task, interval);
         _requests.Add(task, null);
     }
 }
예제 #6
0
 public void remove(RetryTask task)
 {
     lock (this)
     {
         if (_requests.Remove(task))
         {
             if (_communicator == null && _requests.Count == 0)
             {
                 // If we are destroying the queue, destroy is probably waiting on the queue to be empty.
                 System.Threading.Monitor.Pulse(this);
             }
         }
     }
 }
예제 #7
0
 public void add(ProxyOutgoingAsyncBase outAsync, int interval)
 {
     lock(this)
     {
         if(_instance == null)
         {
             throw new Ice.CommunicatorDestroyedException();
         }
         RetryTask task = new RetryTask(this, outAsync);
         outAsync.cancelable(task); // This will throw if the request is canceled.
         _instance.timer().schedule(task, interval);
         _requests.Add(task, null);
     }
 }
예제 #8
0
 public bool cancel(RetryTask task)
 {
     lock (this)
     {
         if (_requests.Remove(task))
         {
             if (_communicator == null && _requests.Count == 0)
             {
                 // If we are destroying the queue, destroy is probably waiting on the queue to be empty.
                 System.Threading.Monitor.Pulse(this);
             }
             return(_communicator.timer().cancel(task));
         }
         return(false);
     }
 }
예제 #9
0
 public bool cancel(RetryTask task)
 {
     lock(this)
     {
         if(_requests.Remove(task))
         {
             if(_instance == null && _requests.Count == 0)
             {
                 // If we are destroying the queue, destroy is probably waiting on the queue to be empty.
                 System.Threading.Monitor.Pulse(this);
             }
             return _instance.timer().cancel(task);
         }
         return false;
     }
 }
예제 #10
0
 public void remove(RetryTask task)
 {
     lock(this)
     {
         if(_requests.Remove(task))
         {
             if(_instance == null && _requests.Count == 0)
             {
                 // If we are destroying the queue, destroy is probably waiting on the queue to be empty.
                 System.Threading.Monitor.Pulse(this);
             }
         }
     }
 }