code: protected void setMaxEndpoints(int maxEndpoints)
      {
          if (ivMaxCreation != maxEndpoints)
          {
              if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
                  Tr.debug(tc, "setMaxEndpoints = " + maxEndpoints);
  
              ivMaxCreation = maxEndpoints;
  
              // It doesn't make sense to pool more handlers/beans than the maximum
              // number of active endpoints, so adjust max pool sizes as necessary
              if (beanPool != null) {
                  beanPool.setMaxSize(Math.min(maxEndpoints, beanPool.getMaxSize()));
              }
              if (ivInvocationHandlerPool != null) {
                  ivInvocationHandlerPool.setMaxSize(Math.min(maxEndpoints, ivInvocationHandlerPool.getMaxSize()));
              }
          }
      }
docs: F96377