Skip to content

Commit

Permalink
[fix][doc] Fix maxNumberOfRejectedRequestPerConnection doc (#17821)
Browse files Browse the repository at this point in the history
* Fix maxNumberOfRejectedRequestPerConnection doc

* fix doc in 2.8.x docs
  • Loading branch information
coderzc authored Sep 26, 2022
1 parent e092064 commit 26281d5
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ public void setConcurrentLookupRequest(int concurrentLookupRequest) {
}

/**
* Get configured max number of reject-request in a time-frame (30 seconds) after which connection will be closed.
* Get configured max number of reject-request in a time-frame (60 seconds) after which connection will be closed.
*
* @return
*/
Expand All @@ -328,7 +328,7 @@ public int getMaxNumberOfRejectedRequestPerConnection() {
}

/**
* Set max number of broker-rejected requests in a certain time-frame (30 seconds) after which current connection.
* Set max number of broker-rejected requests in a certain time-frame (60 seconds) after which current connection.
* will be closed and client creates a new connection that give chance to connect a different broker <i>(default:
* 50)</i>
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ ClientBuilder authentication(String authPluginClassName, Map<String, String> aut
ClientBuilder maxLookupRedirects(int maxLookupRedirects);

/**
* Set max number of broker-rejected requests in a certain time-frame (30 seconds) after which current connection
* Set max number of broker-rejected requests in a certain time-frame (60 seconds) after which current connection
* will be closed and client creates a new connection that give chance to connect a different broker <i>(default:
* 50)</i>.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ public class ClientConfigurationData implements Serializable, Cloneable {

@ApiModelProperty(
name = "maxNumberOfRejectedRequestPerConnection",
value = "Maximum number of rejected requests of a broker in a certain time frame (30 seconds) "
value = "Maximum number of rejected requests of a broker in a certain time frame (60 seconds) "
+ "after the current connection is closed and the client "
+ "creating a new connection to connect to a different broker."
)
Expand Down
2 changes: 1 addition & 1 deletion site2/docs/client-libraries-java.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ If you create a client, you can use the `loadConf` configuration. The following
`tlsHostnameVerificationEnable` |boolean | Whether to enable TLS hostname verification|false
`concurrentLookupRequest`|int|The number of concurrent lookup requests allowed to send on each broker connection to prevent overload on broker|5000
`maxLookupRequest`|int|The maximum number of lookup requests allowed on each broker connection to prevent overload on broker | 50000
`maxNumberOfRejectedRequestPerConnection`|int|The maximum number of rejected requests of a broker in a certain time frame (30 seconds) after the current connection is closed and the client creates a new connection to connect to a different broker|50
`maxNumberOfRejectedRequestPerConnection`|int|The maximum number of rejected requests of a broker in a certain time frame (60 seconds) after the current connection is closed and the client creates a new connection to connect to a different broker|50
`keepAliveIntervalSeconds`|int|Seconds of keeping alive interval for each client broker connection|30
`connectionTimeoutMs`|int|Duration of waiting for a connection to a broker to be established <br /><br />If the duration passes without a response from a broker, the connection attempt is dropped|10000
`requestTimeoutMs`|int|Maximum duration for completing a request |60000
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ If you create a client, you can use the `loadConf` configuration. The following
`tlsHostnameVerificationEnable` |boolean | Whether to enable TLS hostname verification|false
`concurrentLookupRequest`|int|The number of concurrent lookup requests allowed to send on each broker connection to prevent overload on broker|5000
`maxLookupRequest`|int|The maximum number of lookup requests allowed on each broker connection to prevent overload on broker | 50000
`maxNumberOfRejectedRequestPerConnection`|int|The maximum number of rejected requests of a broker in a certain time frame (30 seconds) after the current connection is closed and the client creates a new connection to connect to a different broker|50
`maxNumberOfRejectedRequestPerConnection`|int|The maximum number of rejected requests of a broker in a certain time frame (60 seconds) after the current connection is closed and the client creates a new connection to connect to a different broker|50
`keepAliveIntervalSeconds`|int|Seconds of keeping alive interval for each client broker connection|30
`connectionTimeoutMs`|int|Duration of waiting for a connection to a broker to be established <br /><br />If the duration passes without a response from a broker, the connection attempt is dropped|10000
`requestTimeoutMs`|int|Maximum duration for completing a request |60000
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ boolean|`tlsAllowInsecureConnection`|Whether the Pulsar client accepts untrusted
boolean | `tlsHostnameVerificationEnable` | Whether to enable TLS hostname verification|false
int|`concurrentLookupRequest`|The number of concurrent lookup requests allowed to send on each broker connection to prevent overload on broker|5000
int|`maxLookupRequest`|The maximum number of lookup requests allowed on each broker connection to prevent overload on broker | 50000
int|`maxNumberOfRejectedRequestPerConnection`|The maximum number of rejected requests of a broker in a certain time frame (30 seconds) after the current connection is closed and the client creates a new connection to connect to a different broker|50
int|`maxNumberOfRejectedRequestPerConnection`|The maximum number of rejected requests of a broker in a certain time frame (60 seconds) after the current connection is closed and the client creates a new connection to connect to a different broker|50
int|`keepAliveIntervalSeconds`|Seconds of keeping alive interval for each client broker connection|30
int|`connectionTimeoutMs`|Duration of waiting for a connection to a broker to be established <br /><br />If the duration passes without a response from a broker, the connection attempt is dropped|10000
int|`requestTimeoutMs`|Maximum duration for completing a request |60000
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ If you create a client, you can use the `loadConf` configuration. The following
`tlsHostnameVerificationEnable` |boolean | Whether to enable TLS hostname verification|false
`concurrentLookupRequest`|int|The number of concurrent lookup requests allowed to send on each broker connection to prevent overload on broker|5000
`maxLookupRequest`|int|The maximum number of lookup requests allowed on each broker connection to prevent overload on broker | 50000
`maxNumberOfRejectedRequestPerConnection`|int|The maximum number of rejected requests of a broker in a certain time frame (30 seconds) after the current connection is closed and the client creates a new connection to connect to a different broker|50
`maxNumberOfRejectedRequestPerConnection`|int|The maximum number of rejected requests of a broker in a certain time frame (60 seconds) after the current connection is closed and the client creates a new connection to connect to a different broker|50
`keepAliveIntervalSeconds`|int|Seconds of keeping alive interval for each client broker connection|30
`connectionTimeoutMs`|int|Duration of waiting for a connection to a broker to be established <br /><br />If the duration passes without a response from a broker, the connection attempt is dropped|10000
`requestTimeoutMs`|int|Maximum duration for completing a request |60000
Expand Down

0 comments on commit 26281d5

Please sign in to comment.