com.github.dreamhead.moco.bootstrap.arg.SocketArgs Maven / Gradle / Ivy
package com.github.dreamhead.moco.bootstrap.arg;
import static com.github.dreamhead.moco.bootstrap.ServerType.SOCKET;
public final class SocketArgs extends StartArgs {
private SocketArgs(final Integer port, final Integer shutdownPort, final String configurationFile) {
super(SOCKET, port, shutdownPort, configurationFile, null, null, null);
}
public static Builder socketArgs() {
return new Builder();
}
public static class Builder {
private Integer port;
private Integer shutdownPort;
private String configurationFile;
public final Builder withPort(final Integer port) {
this.port = port;
return this;
}
public final Builder withShutdownPort(final Integer shutdownPort) {
this.shutdownPort = shutdownPort;
return this;
}
public final Builder withConfigurationFile(final String configurationFile) {
this.configurationFile = configurationFile;
return this;
}
public final SocketArgs build() {
return new SocketArgs(port, shutdownPort, configurationFile);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy