@Override
    public synchronized void putTargetState(String connector, TargetState state) {
        ConnectorState connectorState = connectors.get(connector);
        if (connectorState == null)
            throw new IllegalArgumentException("No connector `" + connector + "` configured");

        TargetState prevState = connectorState.targetState;
        connectorState.targetState = state;

        if (updateListener != null && !state.equals(prevState))
            updateListener.onConnectorTargetStateChange(connector);
    }
An implementation of ConfigBackingStore that stores Kafka Connect connector configurations in-memory (i.e. configs
aren't persisted and will be wiped if the worker is restarted).
connect/runtime/src/main/java/org/apache/kafka/connect/storage/MemoryConfigBackingStore.java