tech.ydb.coordination.description.SemaphoreWatcher 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.description;
import java.util.concurrent.CompletableFuture;
import tech.ydb.core.Result;
/**
*
* @author Aleksandr Gorshenin
*/
public class SemaphoreWatcher {
private final SemaphoreDescription description;
private final CompletableFuture> changedFuture;
public SemaphoreWatcher(SemaphoreDescription desc, CompletableFuture> changed) {
this.description = desc;
this.changedFuture = changed;
}
public SemaphoreDescription getDescription() {
return description;
}
public CompletableFuture> getChangedFuture() {
return changedFuture;
}
}