|
33 | 33 | import org.elasticsearch.common.util.concurrent.AbstractRunnable; |
34 | 34 | import org.elasticsearch.common.util.concurrent.EsAbortPolicy; |
35 | 35 | import org.elasticsearch.common.util.concurrent.EsExecutors; |
| 36 | +import org.elasticsearch.common.util.concurrent.EsRejectedExecutionException; |
36 | 37 | import org.elasticsearch.common.util.concurrent.EsThreadPoolExecutor; |
37 | 38 | import org.elasticsearch.common.util.concurrent.ThreadContext; |
38 | 39 | import org.elasticsearch.common.util.concurrent.XRejectedExecutionHandler; |
|
50 | 51 | import java.util.Map; |
51 | 52 | import java.util.concurrent.Executor; |
52 | 53 | import java.util.concurrent.ExecutorService; |
53 | | -import java.util.concurrent.RejectedExecutionException; |
54 | 54 | import java.util.concurrent.RejectedExecutionHandler; |
55 | 55 | import java.util.concurrent.ScheduledExecutorService; |
56 | 56 | import java.util.concurrent.ScheduledFuture; |
@@ -327,7 +327,7 @@ public Cancellable scheduleWithFixedDelay(Runnable command, TimeValue interval, |
327 | 327 | * @return a ScheduledFuture who's get will return when the task is has been added to its target thread pool and throw an exception if |
328 | 328 | * the task is canceled before it was added to its target thread pool. Once the task has been added to its target thread pool |
329 | 329 | * the ScheduledFuture will cannot interact with it. |
330 | | - * @throws java.util.concurrent.RejectedExecutionException {@inheritDoc} |
| 330 | + * @throws org.elasticsearch.common.util.concurrent.EsRejectedExecutionException |
331 | 331 | */ |
332 | 332 | public ScheduledFuture<?> schedule(TimeValue delay, String executor, Runnable command) { |
333 | 333 | if (!Names.SAME.equals(executor)) { |
@@ -796,7 +796,7 @@ public void onAfter() { |
796 | 796 | if (run) { |
797 | 797 | try { |
798 | 798 | threadPool.schedule(interval, executor, this); |
799 | | - } catch (final RejectedExecutionException e) { |
| 799 | + } catch (final EsRejectedExecutionException e) { |
800 | 800 | onRejection(e); |
801 | 801 | } |
802 | 802 | } |
|
0 commit comments