All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.atleon.core.StarterStopper Maven / Gradle / Ivy

package io.atleon.core;

import reactor.core.publisher.Flux;

/**
 * Interface used to implement dynamic control (i.e. starting and stopping) of resources, like
 * {@link AloStream} instances.
 */
public interface StarterStopper {

    /**
     * Creates a {@link Flux} of {@link Boolean} values that are used to start and stop a resource.
     * Upon emission of {@literal true}, the resource should be ensured to be "started", and on
     * emission of {@literal false}, the resource should be ensured to be "stopped".
     */
    Flux startStop();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy