tech.ydb.coordination.settings.CoordinationNodeSettings 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;
import tech.ydb.coordination.description.NodeConfig;
import tech.ydb.core.settings.OperationSettings;
/**
* @author Kirill Kurdyukov
*/
public class CoordinationNodeSettings extends OperationSettings {
private final NodeConfig config;
private CoordinationNodeSettings(Builder builder) {
super(builder);
this.config = builder.config;
}
public NodeConfig getConfig() {
return this.config;
}
public static Builder newBuilder() {
return new Builder();
}
public static class Builder extends OperationSettings.OperationBuilder {
private NodeConfig config = NodeConfig.create();
public Builder withNodeConfig(NodeConfig config) {
this.config = config;
return this;
}
@Override
public CoordinationNodeSettings build() {
return new CoordinationNodeSettings(this);
}
}
}