// return
stopMonitoring();
return;
}
MonitorStatus status = completeCondition.apply(monitoredObject);
logger.debug("monitored object %s status %s", monitoredObject, status.name());
switch (status) {
case DONE:
stopMonitoring();
logger.debug("publishing COMPLETED event");