protected List<PulsarTopicState<T>> getSubscribedTopicStates() {
        return subscribedPartitionStates;
    }
Takes a snapshot of the partition offsets.

<p>Important: This method must be called under the checkpoint lock.

@return A map from partition to current offset.
inlong-sort/sort-flink/sort-flink-v1.13/sort-connectors/pulsar/src/main/java/org/apache/inlong/sort/pulsar/internal/PulsarFetcher.java