rwLock.readLock().lock();
try {
return timestampedPriorityQueue.peek().timestamp;
} catch (NullPointerException cause) {
NoSuchElementException ex = new NoSuchElementException("The underlying collection is empty.");
ex.initCause(cause);
throw ex;
}
} finally {
rwLock.readLock().unlock();
}