code: public Stats getStats (boolean snapshot)
      {
          synchronized (this) {
              if (snapshot) {
                  _recent = _current;
                  _current = new Stats();
                  _current.maxQueueSize = _queue.size();
              }
              return _recent;
          }
      }
docs: Returns a recent snapshot of runtime statistics tracked by the invoker.
  
  @param snapshot if true, the current stats will be snapshotted and reset and the new
  snapshot will be returned. If false, the previous snapshot will be returned. If no snapshot
  has ever been taken, the current stats that have been accumulting since the JVM start will
  be returned.