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

tech.ydb.coordination.settings.WatchSemaphoreMode Maven / Gradle / Ivy

There is a newer version: 2.3.6
Show newest version
package tech.ydb.coordination.settings;

/**
 *
 * @author Aleksandr Gorshenin
 */
public enum WatchSemaphoreMode {
    /**
     * Watch for changes in semaphore data
     */
    WATCH_DATA(true, false),
    /**
     * Watch for changes in semaphore owners
     */
    WATCH_OWNERS(false, true),
    /**
     * Watch for changes in semaphore data or owners
     */
    WATCH_DATA_AND_OWNERS(true, true);

    private final boolean watchData;
    private final boolean watchOwners;

    WatchSemaphoreMode(boolean watchData, boolean watchOwners) {
        this.watchData = watchData;
        this.watchOwners = watchOwners;
    }

    public boolean watchData() {
        return watchData;
    }

    public boolean watchOwners() {
        return watchOwners;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy