private boolean markProcessed() {
      boolean oldValue = processed;
      processed = true;
      return !oldValue;
    }
Returns true if the envelope has not been processed.
samza-core/src/main/java/org/apache/samza/container/RunLoop.java