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
The newest version!
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;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy