Skip to content

Commit 8b254ad

Browse files
committed
Improve Javadoc for ConcurrencyThrottleSupport
1 parent 73ad1eb commit 8b254ad

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

spring-core/src/main/java/org/springframework/util/ConcurrencyThrottleSupport.java

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@
3434
* appropriate points of its workflow. Note that {@code afterAccess}
3535
* should usually be called in a {@code finally} block!
3636
*
37-
* <p>The default concurrency limit of this support class is -1
38-
* ("unbounded concurrency"). Subclasses may override this default;
37+
* <p>The default concurrency limit of this support class is
38+
* {@link #UNBOUNDED_CONCURRENCY}. Subclasses may override this default;
3939
* check the javadoc of the concrete class that you're using.
4040
*
4141
* @author Juergen Hoeller
@@ -50,12 +50,19 @@
5050
public abstract class ConcurrencyThrottleSupport implements Serializable {
5151

5252
/**
53-
* Permit any number of concurrent invocations: that is, don't throttle concurrency.
53+
* Concurrency limit which signals unbounded concurrency: {@value}.
54+
* <p>Setting the limit to this value permits any number of concurrent
55+
* invocations: that is, concurrency will not be throttled.
56+
* @see #NO_CONCURRENCY
5457
*/
5558
public static final int UNBOUNDED_CONCURRENCY = -1;
5659

5760
/**
58-
* Switch concurrency 'off': that is, don't allow any concurrent invocations.
61+
* Concurrency limit which signals that concurrency throttling has been
62+
* disabled: {@value}.
63+
* <p>Setting the limit to this value prevents all invocations.
64+
* @see #beforeAccess()
65+
* @see #UNBOUNDED_CONCURRENCY
5966
*/
6067
public static final int NO_CONCURRENCY = 0;
6168

0 commit comments

Comments
 (0)