code: protected boolean maxRequestsServed() {
          // PK12235, check for a partial or full stop
          if (getChannel().isStopping()) {
              // channel has stopped, no more keep-alives
              if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
                  Tr.debug(tc, "Channel stopped, disabling keep-alive request");
              }
              return true;
          }
          if (!getChannel().getHttpConfig().isKeepAliveEnabled()) {
              // keep alives are disabled, no need to check the max request number
              return true;
          }
          int max = getChannel().getHttpConfig().getMaximumPersistentRequests();
          // -1 is unlimited, 0..1 is 1 request, any above that is that exact
          // number of requests
          if (0 <= max) {
              return (this.numRequestsProcessed >= max);
          }
          return false;
      }
docs: Find out whether we've served the maximum number of requests allowed
  on this connection already.
  
  @return boolean