mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
Align InvocationRejectedException javadoc with TaskRejectedException
See gh-36109 See gh-36114
This commit is contained in:
+7
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user