tech.ydb.coordination.settings.DescribeSemaphoreMode Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ydb-sdk-coordination Show documentation
Show all versions of ydb-sdk-coordination Show documentation
Coordination node client implementation
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;
}
}