File tree Expand file tree Collapse file tree 4 files changed +16
-1
lines changed
core/src/main/java/dev/failsafe Expand file tree Collapse file tree 4 files changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -50,6 +50,10 @@ public Bulkhead<R> build() {
5050 /**
5151 * Configures the {@code maxWaitTime} to wait for permits to be available. If permits cannot be acquired before the
5252 * {@code maxWaitTime} is exceeded, then the bulkhead will throw {@link BulkheadFullException}.
53+ * <p>
54+ * This setting only applies when the resulting Bulkhead is used with the {@link Failsafe} class. It does not apply
55+ * when the Bulkhead is used in a standalone way.
56+ * </p>
5357 *
5458 * @throws NullPointerException if {@code maxWaitTime} is null
5559 */
Original file line number Diff line number Diff line change @@ -50,6 +50,10 @@ public int getMaxConcurrency() {
5050 /**
5151 * Returns the max time to wait for permits to be available. If permits cannot be acquired before the max wait time is
5252 * exceeded, then the bulkhead will throw {@link BulkheadFullException}.
53+ * <p>
54+ * This setting only applies when the Bulkhead is used with the {@link Failsafe} class. It does not apply when the
55+ * Bulkhead is used in a standalone way.
56+ * </p>
5357 *
5458 * @see BulkheadBuilder#withMaxWaitTime(Duration)
5559 */
Original file line number Diff line number Diff line change 1919import dev .failsafe .internal .util .Assert ;
2020
2121import java .time .Duration ;
22- import java .time .temporal .ChronoUnit ;
2322
2423/**
2524 * Builds {@link RateLimiter} instances.
@@ -57,6 +56,10 @@ public RateLimiter<R> build() {
5756 /**
5857 * Configures the {@code maxWaitTime} to wait for permits to be available. If permits cannot be acquired before the
5958 * {@code maxWaitTime} is exceeded, then the rate limiter will throw {@link RateLimitExceededException}.
59+ * <p>
60+ * This setting only applies when the resulting RateLimiter is used with the {@link Failsafe} class. It does not apply
61+ * when the RateLimiter is used in a standalone way.
62+ * </p>
6063 *
6164 * @throws NullPointerException if {@code maxWaitTime} is null
6265 */
Original file line number Diff line number Diff line change @@ -85,6 +85,10 @@ public Duration getPeriod() {
8585 /**
8686 * Returns the max time to wait for permits to be available. If permits cannot be acquired before the max wait time is
8787 * exceeded, then the rate limiter will throw {@link RateLimitExceededException}.
88+ * <p>
89+ * This setting only applies when the RateLimiter is used with the {@link Failsafe} class. It does not apply when the
90+ * RateLimiter is used in a standalone way.
91+ * </p>
8892 *
8993 * @see RateLimiterBuilder#withMaxWaitTime(Duration)
9094 */
You can’t perform that action at this time.
0 commit comments