if (rejectedExecutionHandler.equals("AbortPolicy")) {
return new AbortPolicy();
} else if (rejectedExecutionHandler.equals("CallerRunsPolicy")) {
return new CallerRunsPolicy();
} else if (rejectedExecutionHandler.equals("DiscardOldestPolicy")) {
return new DiscardOldestPolicy();
} else {// default "DiscardPolicy"
return new DiscardPolicy();
}
}