public void leaderState(LeaderState update) {
        leaderState = update;
    }
Store the leader state to this worker coordinator.

@param update the updated leader state
connect/runtime/src/main/java/org/apache/kafka/connect/runtime/distributed/WorkerCoordinator.java