private void controlRequestForPartitions(EnumSet<RequestOrResponseType> requestTypes, Collection<PartitionId> ids,
      boolean enable) {
    for (RequestOrResponseType requestType : requestTypes) {
      if (enable) {
        requestsDisableInfo.get(requestType).removeAll(ids);
      } else {
        requestsDisableInfo.get(requestType).addAll(ids);
      }
    }
  }
Enables/disables {@code requestOrResponseType} on the given {@code ids}.
@param requestTypes the {@link RequestOrResponseType} to enable/disable.
@param ids the {@link PartitionId}s to enable/disable it on.
@param enable whether to enable ({@code true}) or disable
ambry-server/src/main/java/com/github/ambry/server/AmbryServerRequests.java