public PulsarSourceBuilder<OUT> setUnboundedStopCursor(StopCursor stopCursor) {
        this.boundedness = Boundedness.CONTINUOUS_UNBOUNDED;
        this.stopCursor = checkNotNull(stopCursor);
        return this;
    }
By default, the PulsarSource runs in an {@link Boundedness#CONTINUOUS_UNBOUNDED} mode and
never stop until the Flink job is canceled or fails. To let the PulsarSource run in {@link
Boundedness#CONTINUOUS_UNBOUNDED} but stops at some given offsets, one can call {@link
#setUnboundedStopCursor(StopCursor)} and disable auto partition discovery as described below.

<p>This method is different from {@link #setBoundedStopCursor(StopCursor)} that after setting
the stopping offsets with this method, {@link PulsarSource#getBoundedness()} will still
return {@link Boundedness#CONTINUOUS_UNBOUNDED} even though it will stop at the stopping
offsets specified by the stopping offsets {@link StopCursor}.

<p>To stop the connector user has to disable the auto partition discovery. As auto partition
discovery always expected new splits to come and not exiting. To disable auto partition
discovery, use builder.setConfig({@link
PulsarSourceOptions#PULSAR_PARTITION_DISCOVERY_INTERVAL_MS}, -1).

@param stopCursor The {@link StopCursor} to specify the stopping offset.
@return this PulsarSourceBuilder.
@see #setBoundedStopCursor(StopCursor)
inlong-sort/sort-flink/sort-flink-v1.15/sort-connectors/pulsar/src/main/java/org/apache/inlong/sort/pulsar/source/PulsarSourceBuilder.java