Align InvocationRejectedException javadoc with TaskRejectedException

See gh-36109
See gh-36114
This commit is contained in:
Juergen Hoeller
2026-01-08 16:18:14 +01:00
parent c4d5e3c57d
commit 169465cce1
2 changed files with 11 additions and 1 deletions
@@ -23,9 +23,15 @@ import java.util.concurrent.RejectedExecutionException;
* such as the concurrency limit having been reached for a class/method annotated with
* {@link org.springframework.resilience.annotation.ConcurrencyLimit @ConcurrencyLimit}.
*
* <p>Extends {@link RejectedExecutionException} as a common base class
* with {@link org.springframework.core.task.TaskRejectedException},
* allowing for custom catch blocks to cover both Spring scenarios and
* {@link java.util.concurrent.ExecutorService} rejection exceptions.
*
* @author Juergen Hoeller
* @since 7.0.3
* @see org.springframework.resilience.annotation.ConcurrencyLimit#rejectOnExcess()
* @see org.springframework.resilience.annotation.ConcurrencyLimit.ThrottlePolicy#REJECT
* @see org.springframework.core.task.TaskRejectedException
*/
@SuppressWarnings("serial")
public class InvocationRejectedException extends RejectedExecutionException {
@@ -24,6 +24,10 @@ import java.util.concurrent.RejectedExecutionException;
* Exception thrown when a {@link TaskExecutor} rejects to accept
* a given task for execution.
*
* <p>Extends {@link RejectedExecutionException} as a common base class,
* allowing for custom catch blocks to cover both Spring scenarios and
* {@link java.util.concurrent.ExecutorService} rejection exceptions.
*
* @author Juergen Hoeller
* @since 2.0.1
* @see TaskExecutor#execute(Runnable)