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

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

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

/**
 *
 * @author Aleksandr Gorshenin
 */
public enum DescribeSemaphoreMode {
    /**
     * Describe only semaphore's data (name, user-defined data and others)
     */
    DATA_ONLY(false, false),
    /**
     * Include owners list to describe result
     */
    WITH_OWNERS(true, false),
    /**
     * Include waiters list to describe result
     */
    WITH_WAITERS(false, true),
    /**
     * Include waiters and owners lists to describe result
     */
    WITH_OWNERS_AND_WAITERS(true, true);

    private final boolean includeOwners;
    private final boolean includeWaiters;

    DescribeSemaphoreMode(boolean includeOwners, boolean includeWaiters) {
        this.includeOwners = includeOwners;
        this.includeWaiters = includeWaiters;
    }

    public boolean includeOwners() {
        return includeOwners;
    }

    public boolean includeWaiters() {
        return includeWaiters;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy