'Does ReactiveDiscoveryClient.probe actually do anything?

I'm looking through the code for ReactiveDiscoveryClient and I noticed the following

    Flux<String> getServices();

    /**
     * Can be used to verify the client is still valid and able to make calls.
     * <p>
     * A successful invocation with no exception thrown implies the client is able to make
     * calls.
     * <p>
     * The default implementation simply calls {@link #getServices()} - client
     * implementations can override with a lighter weight operation if they choose to.
     */
    default void probe() {
        getServices();
    }

But since getServices() returns a Flux and Flux don't do anything until subscribe occurs, would probes using the default implementation be a no-op?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source