// Log the start of the consumption cycle.
Date start = new Date();
boolean success;
success = preConsume(data);
if (success)
success = doConsume(data);
if (success)
success = postConsume(data);
// Mark the end of our consumption cycle
monitor.addSample(data.length, start, new Date());
// Pass the data on to the next consumer in the chain,
// if present.
if (dest != null) {
dest.consume(data);
}
return success;