public synchronized <KIn, VIn> Topology addGlobalStore(final StoreBuilder<?> storeBuilder,
                                                           final String sourceName,
                                                           final TimestampExtractor timestampExtractor,
                                                           final Deserializer<KIn> keyDeserializer,
                                                           final Deserializer<VIn> valueDeserializer,
                                                           final String topic,
                                                           final String processorName,
                                                           final ProcessorSupplier<KIn, VIn, Void, Void> stateUpdateSupplier) {
        internalTopologyBuilder.addGlobalStore(
            new StoreBuilderWrapper(storeBuilder),
            sourceName,
            timestampExtractor,
            keyDeserializer,
            valueDeserializer,
            topic,
            processorName,
            stateUpdateSupplier,
            true
        );
        return this;
    }
Adds a global {@link StateStore} to the topology.
The {@link StateStore} sources its data from all partitions of the provided input topic.
There will be exactly one instance of this {@link StateStore} per Kafka Streams instance.
<p>
A {@link SourceNode} with the provided sourceName will be added to consume the data arriving from the partitions
of the input topic.
<p>
The provided {@link ProcessorSupplier} will be used to create an {@link ProcessorNode} that will receive all
records forwarded from the {@link SourceNode}.
This {@link ProcessorNode} should be used to keep the {@link StateStore} up-to-date.

@param storeBuilder          user defined key value store builder
@param sourceName            name of the {@link SourceNode} that will be automatically added
@param timestampExtractor    the stateless timestamp extractor used for this source,
                             if not specified the default extractor defined in the configs will be used
@param keyDeserializer       the {@link Deserializer} to deserialize keys with
@param valueDeserializer     the {@link Deserializer} to deserialize values with
@param topic                 the topic to source the data from
@param processorName         the name of the {@link ProcessorSupplier}
@param stateUpdateSupplier   the instance of {@link ProcessorSupplier}
@return itself
@throws TopologyException if the processor of state is already registered
streams/src/main/java/org/apache/kafka/streams/Topology.java