File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed
spring-core/src/main/java/org/springframework/util Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change 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
5050public 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
You can’t perform that action at this time.
0 commit comments