public synchronized Topology addStateStore(final StoreBuilder<?> storeBuilder,
                                               final String... processorNames) {
        internalTopologyBuilder.addStateStore(storeBuilder, processorNames);
        return this;
    }
Adds a state store.

@param storeBuilder the storeBuilder used to obtain this state store {@link StateStore} instance
@param processorNames the names of the processors that should be able to access the provided store
@return itself
@throws TopologyException if state store supplier is already added
streams/src/main/java/org/apache/kafka/streams/Topology.java