Are there any circumstances under which a ThreadPoolExecutor.CallerRunsPolicy will throw a RejectedExecutionException?
It seems to me that the policy itself is intended to prevent throwing these Exceptions. The API for its interface method, RejectedExecutionHandler.rejectedExecution() claims that it may throw a RejectedExecutionExceptio...
Is it a good solution or not?
How to implement?
When should I shutdown properly? I shutdown it onDestroy() in the Activity, then relaunch my app as soon as possible. It causes a java.util.concurrent.RejectedExecutionException, why? Does anyone know its lifecycle?
Any idea? Thanks.
...
Hi,
I am stuck with this following problem.
Say, I have a request which has 1000 items, and I would like to utilize Java Executor to resolve this.
Here is the main method
public static void main(String[] args) {
//Assume that I have request object that contain arrayList of names
//and VectorList is container for each request...