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

tech.ydb.coordination.description.SemaphoreWatcher Maven / Gradle / Ivy

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