Skip to content

Commit 5b745be

Browse files
committed
Add warning about entity count limit per connection
In case of too many concurrent creations. References #464
1 parent 15f83ff commit 5b745be

File tree

2 files changed

+17
-5
lines changed

2 files changed

+17
-5
lines changed

Diff for: src/docs/asciidoc/api.adoc

+11-5
Original file line numberDiff line numberDiff line change
@@ -187,18 +187,24 @@ Executors
187187
----
188188
|`maxProducersByConnection`
189189
|The maximum number of `Producer` instances a single connection can maintain before
190-
a new connection is open. The value must be between 1 and 255.
191-
|255
190+
a new connection is open.
191+
The value must be between 1 and 256.
192+
The limit may not be strictly enforced in case of too many concurrent creations.
193+
|256
192194

193195
|`maxTrackingConsumersByConnection`
194196
|The maximum number of `Consumer` instances that store their offset a single connection
195-
can maintain before a new connection is open. The value must be between 1 and 255.
197+
can maintain before a new connection is open.
198+
The value must be between 1 and 256.
199+
The limit may not be strictly enforced in case of too many concurrent creations.
196200
|50
197201

198202
|`maxConsumersByConnection`
199203
|The maximum number of `Consumer` instances a single connection can maintain before
200-
a new connection is open. The value must be between 1 and 255.
201-
|255
204+
a new connection is open.
205+
The value must be between 1 and 256.
206+
The limit may not be strictly enforced in case of too many concurrent creations.
207+
|256
202208

203209
|`lazyInitialization`
204210
|To delay the connection opening until necessary.

Diff for: src/main/java/com/rabbitmq/stream/EnvironmentBuilder.java

+6
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,8 @@ public interface EnvironmentBuilder {
247247
*
248248
* <p>Default is 256, which is the maximum value.
249249
*
250+
* <p>The limit may not be strictly enforced in case of too many concurrent creations.
251+
*
250252
* @param maxProducersByConnection
251253
* @return this builder instance
252254
*/
@@ -257,6 +259,8 @@ public interface EnvironmentBuilder {
257259
*
258260
* <p>Default is 50, which is the maximum value.
259261
*
262+
* <p>The limit may not be strictly enforced in case of too many concurrent creations.
263+
*
260264
* @param maxTrackingConsumersByConnection
261265
* @return this builder instance
262266
*/
@@ -267,6 +271,8 @@ public interface EnvironmentBuilder {
267271
*
268272
* <p>Default is 256, which is the maximum value.
269273
*
274+
* <p>The limit may not be strictly enforced in case of too many concurrent creations.
275+
*
270276
* @param maxConsumersByConnection
271277
* @return this builder instance
272278
*/

0 commit comments

Comments
 (0)