Пример #1
0
 /// <summary>
 /// AddTupleToBeAcked inserts tuple in ToBeAcked.
 /// </summary>
 /// <param name="t">Tuple that will be acked</param>
 public void AddTupleToBeAcked(Tuple t, string ackUrl)//Add tuple t to be acked
 {
     if (!RepInfo.Semantics.Equals("at-most-once"))
     {
         AckTuple temp = new AckTuple(t, ackUrl);
         ToBeAcked.Add(temp);
     }
 }
Пример #2
0
 public void removeToBeAck(AckTuple t)//Remove tuple that needed to be sent ack from the list
 {
     if (!RepInfo.Semantics.Equals("at-most-once"))
     {
         if (ToBeAcked.Contains(t))
         {
             Console.WriteLine("removeToBeAck: " + t.AckT.toString());
             ToBeAcked.Remove(t);
         }
         else
         {
             Console.WriteLine("removeToBeAck: Error while removing tuple after being acked: " + t.AckT.toString());
         }
     }
 }