public Integer taskConfigGeneration(String connector) {
        return connectorTaskConfigGenerations.get(connector);
    }
Get the generation number for the connector's task configurations, if one exists.
Generation numbers increase monotonically each time a new set of task configurations is detected for the connector
@param connector name of the connector
@return the latest task config generation number for the connector, or {@code null} if none exists
connect/runtime/src/main/java/org/apache/kafka/connect/storage/ClusterConfigState.java