ad more info when rejecting execution
This commit is contained in:
parent
b27cc1318f
commit
d3e9506a1d
|
@ -30,6 +30,6 @@ public class EsAbortPolicy implements RejectedExecutionHandler {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void rejectedExecution(Runnable r, ThreadPoolExecutor executor) {
|
public void rejectedExecution(Runnable r, ThreadPoolExecutor executor) {
|
||||||
throw new EsRejectedExecutionException();
|
throw new EsRejectedExecutionException("rejected execution of [" + r.getClass().getName() + "]");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -26,6 +26,10 @@ import org.elasticsearch.rest.RestStatus;
|
||||||
*/
|
*/
|
||||||
public class EsRejectedExecutionException extends ElasticSearchException {
|
public class EsRejectedExecutionException extends ElasticSearchException {
|
||||||
|
|
||||||
|
public EsRejectedExecutionException(String message) {
|
||||||
|
super(message);
|
||||||
|
}
|
||||||
|
|
||||||
public EsRejectedExecutionException() {
|
public EsRejectedExecutionException() {
|
||||||
super(null);
|
super(null);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue