Skip to content

Commit

Permalink
Add "since 1.5.0" tag to new methods
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilipRoman committed Apr 22, 2020
1 parent 3ebbe21 commit ca38a4b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/org/java_websocket/server/WebSocketServer.java
Expand Up @@ -109,6 +109,7 @@ public abstract class WebSocketServer extends AbstractWebSocket implements Runna
/**
* Attribute which allows you to configure the socket "backlog" parameter
* which determines how many client connections can be queued.
* @since 1.5.0
*/
private int maxPendingConnections = -1;

Expand Down Expand Up @@ -316,6 +317,7 @@ public List<Draft> getDraft() {
* Set the requested maximum number of pending connections on the socket. The exact semantics are implementation
* specific. The value provided should be greater than 0. If it is less than or equal to 0, then
* an implementation specific default will be used. This option will be passed as "backlog" parameter to {@link ServerSocket#bind(SocketAddress, int)}
* @since 1.5.0
*/
public void setMaxPendingConnections(int numberOfConnections) {
maxPendingConnections = numberOfConnections;
Expand All @@ -325,6 +327,7 @@ public void setMaxPendingConnections(int numberOfConnections) {
* Returns the currently configured maximum number of pending connections.
*
* @see #setMaxPendingConnections(int)
* @since 1.5.0
*/
public int getMaxPendingConnections() {
return maxPendingConnections;
Expand Down

0 comments on commit ca38a4b

Please sign in to comment.