code: public void clear() {
      if (cache == null) {
        return;
      }
      synchronized (cache) {
        inFlushAll = true;
        cache.invalidateAll();
        out.clear();
        inFlushAll = false;
      }
    }
docs: Clears this instances cache of aggregated operations.
  
  Is intended to be called by the driver before shutdown.