예제 #1
0
 /// <summary>
 /// Return the highest sequence number of a message consumed by the application
 /// </summary>
 /// <returns>The highest sequence number of a message consumed by the application</returns>
 public long getHighestDelivered()
 {
     rwlock.readLock();
     try
     {
         return(Math.Max(head - 1, -1));
     }
     finally { rwlock.readUnlock(); }
 }