public void Reset()
 {
     _counterCurrent.Set(0);
     _counterTotal.Set(0);
 }
示例#2
0
 /// <summary>
 /// Sets the time when last seen online to now.
 /// </summary>
 /// <returns>The number of successful checks.</returns>
 public int SuccessfullyChecked()
 {
     _lastSeenOnline.Set(Convenient.CurrentTimeMillis());
     _failed.Set(0);
     return(_successfullyChecked.IncrementAndGet());
 }