Merge git+ssh://davetron5000@repo.or.cz/srv/git/vimdoclet
[vimdoclet.git] / sample / java.util.concurrent.RejectedExecutionHandler.txt
blobcb0ac168d38673e069cb6a0d16c684d9b24cc9f2
1 *java.util.concurrent.RejectedExecutionHandler* *RejectedExecutionHandler* A han
3 public interface interface RejectedExecutionHandler
6 |java.util.concurrent.RejectedExecutionHandler_Description|
7 |java.util.concurrent.RejectedExecutionHandler_Fields|
8 |java.util.concurrent.RejectedExecutionHandler_Constructors|
9 |java.util.concurrent.RejectedExecutionHandler_Methods|
11 ================================================================================
13 *java.util.concurrent.RejectedExecutionHandler_Methods*
14 |java.util.concurrent.RejectedExecutionHandler.rejectedExecution(Runnable,ThreadPoolExecutor)|
16 *java.util.concurrent.RejectedExecutionHandler_Description*
18 A handler for tasks that cannot be executed by a 
19 (|java.util.concurrent.ThreadPoolExecutor|) . 
22 *java.util.concurrent.RejectedExecutionHandler.rejectedExecution(Runnable,ThreadPoolExecutor)*
24 public void rejectedExecution(
25   java.lang.Runnable r,
26   java.util.concurrent.ThreadPoolExecutor executor)
28 Method that may be invoked by a (|java.util.concurrent.ThreadPoolExecutor|) 
29 when execute cannot accept a task. This may occur when no more threads or queue 
30 slots are available because their bounds would be exceeded, or upon shutdown of 
31 the Executor. 
33 In the absence other alternatives, the method may throw an unchecked 
34 (|java.util.concurrent.RejectedExecutionException|) , which will be propagated 
35 to the caller of execute. 
37     r - the runnable task requested to be executed 
38     executor - the executor attempting to execute this task