boolean completedQuietPeriod(){
  if (shutdownStartTimeNanos == null) {
    shutdownStartTimeNanos=ticker.read();
  }
  if (pendingResCount != 0 || !completedBlockingTasks()) {
    return false;
  }
  final long shutdownStartTimeNanos=this.shutdownStartTimeNanos;
  final long currentTimeNanos=ticker.read();
  final long duration;
  if (updatedLastResTimeNanos) {
    duration=Math.min(currentTimeNanos - shutdownStartTimeNanos,currentTimeNanos - lastResTimeNanos);
  }
 else {
    duration=currentTimeNanos - shutdownStartTimeNanos;
  }
  return duration >= quietPeriodNanos;
}

boolean completedQuietPeriod ( ) { if ( shutdownStartTimeNanos == null ) { shutdownStartTimeNanos = ticker . read ( ) ; } if ( pendingResCount != 0 || ! completedBlockingTasks ( ) ) { return false ; } final long shutdownStartTimeNanos = this . shutdownStartTimeNanos ; final long currentTimeNanos = ticker . read ( ) ; final long duration ; if ( updatedLastResTimeNanos ) { duration = Math . min ( currentTimeNanos - shutdownStartTimeNanos , currentTimeNanos - lastResTimeNanos ) ; } else { duration = currentTimeNanos - shutdownStartTimeNanos ; } return duration >= quietPeriodNanos ; }
indicates the quiet period duration has passed since the last request .
