Skip to content

Commit

Permalink
Minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Aleksa Radovanovic committed Sep 17, 2024
1 parent cadf0bf commit 4b0cf80
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 14 deletions.
16 changes: 7 additions & 9 deletions src/main/java/io/vertx/core/net/NetServerOptions.java
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public NetServerOptions() {
/**
* Copy constructor
*
* @param other the options to copy
* @param other the options to copy
*/
public NetServerOptions(NetServerOptions other) {
super(other);
Expand All @@ -124,7 +124,7 @@ public NetServerOptions(NetServerOptions other) {
/**
* Create some options from JSON
*
* @param json the JSON
* @param json the JSON
*/
public NetServerOptions(JsonObject json) {
super(json);
Expand Down Expand Up @@ -377,6 +377,7 @@ public NetServerOptions setAcceptBacklog(int acceptBacklog) {
}

/**
*
* @return the port
*/
public int getPort() {
Expand All @@ -386,7 +387,7 @@ public int getPort() {
/**
* Set the port
*
* @param port the port
* @param port the port
* @return a reference to this, so the API can be used fluently
*/
public NetServerOptions setPort(int port) {
Expand All @@ -398,6 +399,7 @@ public NetServerOptions setPort(int port) {
}

/**
*
* @return the host
*/
public String getHost() {
Expand All @@ -406,8 +408,7 @@ public String getHost() {

/**
* Set the host
*
* @param host the host
* @param host the host
* @return a reference to this, so the API can be used fluently
*/
public NetServerOptions setHost(String host) {
Expand Down Expand Up @@ -462,9 +463,7 @@ public NetServerOptions setSni(boolean sni) {
/**
* @return whether the server uses the HA Proxy protocol
*/
public boolean isUseProxyProtocol() {
return useProxyProtocol;
}
public boolean isUseProxyProtocol() { return useProxyProtocol; }

/**
* Set whether the server uses the HA Proxy protocol
Expand Down Expand Up @@ -533,7 +532,6 @@ public NetServerOptions setTrafficShapingOptions(TrafficShapingOptions trafficSh
return this;
}


private void init() {
this.port = DEFAULT_PORT;
this.host = DEFAULT_HOST;
Expand Down
10 changes: 5 additions & 5 deletions src/main/java/io/vertx/core/spi/transport/Transport.java
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,10 @@ default io.vertx.core.net.SocketAddress convert(SocketAddress address) {
}

/**
* @param type one of {@link #ACCEPTOR_EVENT_LOOP_GROUP} or {@link #IO_EVENT_LOOP_GROUP}.
* @param nThreads the number of threads that will be used by this instance.
* @param type one of {@link #ACCEPTOR_EVENT_LOOP_GROUP} or {@link #IO_EVENT_LOOP_GROUP}.
* @param nThreads the number of threads that will be used by this instance.
* @param threadFactory the ThreadFactory to use.
* @param ioRatio the IO ratio
* @param ioRatio the IO ratio
* @return a new event loop group
*/
EventLoopGroup eventLoopGroup(int type, int nThreads, ThreadFactory threadFactory, int ioRatio);
Expand All @@ -105,14 +105,14 @@ default io.vertx.core.net.SocketAddress convert(SocketAddress address) {
DatagramChannel datagramChannel(InternetProtocolFamily family);

/**
* @param domainSocket whether to create a unix domain channel or a socket channel
* @return the type for channel
* @param domainSocket whether to create a unix domain channel or a socket channel
*/
ChannelFactory<? extends Channel> channelFactory(boolean domainSocket);

/**
* @param domainSocket whether to create a server unix domain channel or a regular server socket channel
* @return the type for server channel
* @param domainSocket whether to create a server unix domain channel or a regular server socket channel
*/
ChannelFactory<? extends ServerChannel> serverChannelFactory(boolean domainSocket);

Expand Down

0 comments on commit 4b0cf80

Please sign in to comment.