Fix Javadocs for ThreadPool#schedule

This commit fixes an issue with an @throws tag on ThreadPool#schedule
not containing a description.
This commit is contained in:
Jason Tedor 2016-07-19 18:35:30 -04:00
parent 770186f6cf
commit 128f0276d9
1 changed files with 1 additions and 1 deletions

View File

@ -327,7 +327,7 @@ public class ThreadPool extends AbstractComponent implements Closeable {
* @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
* the task is canceled before it was added to its target thread pool. Once the task has been added to its target thread pool
* the ScheduledFuture will cannot interact with it.
* @throws org.elasticsearch.common.util.concurrent.EsRejectedExecutionException
* @throws EsRejectedExecutionException if the task cannot be scheduled for execution
*/
public ScheduledFuture<?> schedule(TimeValue delay, String executor, Runnable command) {
if (!Names.SAME.equals(executor)) {