tech.ydb.coordination.settings.WatchSemaphoreMode 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 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;
}
}