API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.util.concurrent. ThreadPoolExecutor.CallerRunsPolicy View Source
Author(s)
Since
Version
Serial
Hierarchy
 Object
      ThreadPoolExecutor.CallerRunsPolicy
Implements
 RejectedExecutionHandler
Subclasses
Description
publicstatic class ThreadPoolExecutor.CallerRunsPolicy
A handler for rejected tasks that runs the rejected task directly in the calling thread of the execute method, unless the executor has been shut down, in which case the task is discarded.
See also:   
Constructors
public ThreadPoolExecutor.CallerRunsPolicy ()
Creates a CallerRunsPolicy.
Methods
Hide/Show inherited methods
public void rejectedExecution (Runnable r, ThreadPoolExecutor e) [Specified in RejectedExecutionHandler]
  Executes task r in the caller's thread, unless the executor has been shut down, in which case the task is discarded.
Fields
Hide/Show inherited fields
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar