NANOSECONDS);
switch (item.kind()) {
case DATA:
LogMessage logMessage = item.content();
logMessage.accept(measurementCollectingVisitor);
logMessage.accept(dataCollectingVisitor);
if (!doneCollecting && measurementCollectingVisitor.isDoneCollecting()) {
doneCollecting = true;
// We have received all the measurements we need and are about to tell the worker to
// shut down. At this point the worker should shutdown soon, but we don't want to
// wait too long, so decrease the time limit so that we wait no more than