java.util.concurrent
Class ThreadPoolExecutor.AbortPolicy

java.lang.Object sample code for java.lang.Object definition code for java.lang.Object 
  extended by java.util.concurrent.ThreadPoolExecutor.AbortPolicy
All Implemented Interfaces:
RejectedExecutionHandler sample code for java.util.concurrent.RejectedExecutionHandler definition code for java.util.concurrent.RejectedExecutionHandler
Enclosing class:
ThreadPoolExecutor sample code for java.util.concurrent.ThreadPoolExecutor definition code for java.util.concurrent.ThreadPoolExecutor

public static class ThreadPoolExecutor.AbortPolicy
extends Object sample code for java.lang.Object definition code for java.lang.Object
implements RejectedExecutionHandler sample code for java.util.concurrent.RejectedExecutionHandler definition code for java.util.concurrent.RejectedExecutionHandler

A handler for rejected tasks that throws a RejectedExecutionException.


Constructor Summary
ThreadPoolExecutor.AbortPolicy sample code for java.util.concurrent.ThreadPoolExecutor.AbortPolicy.ThreadPoolExecutor.AbortPolicy() definition code for java.util.concurrent.ThreadPoolExecutor.AbortPolicy.ThreadPoolExecutor.AbortPolicy() ()
          Creates an AbortPolicy.
 
Method Summary
 void rejectedExecution sample code for java.util.concurrent.ThreadPoolExecutor.AbortPolicy.rejectedExecution(java.lang.Runnable, java.util.concurrent.ThreadPoolExecutor) definition code for java.util.concurrent.ThreadPoolExecutor.AbortPolicy.rejectedExecution(java.lang.Runnable, java.util.concurrent.ThreadPoolExecutor) (Runnable sample code for java.lang.Runnable definition code for java.lang.Runnable  r, ThreadPoolExecutor sample code for java.util.concurrent.ThreadPoolExecutor definition code for java.util.concurrent.ThreadPoolExecutor  e)
          Always throws RejectedExecutionException.
 
Methods inherited from class java.lang.Object sample code for java.lang.Object definition code for java.lang.Object
clone sample code for java.lang.Object.clone() definition code for java.lang.Object.clone() , equals sample code for java.lang.Object.equals(java.lang.Object) definition code for java.lang.Object.equals(java.lang.Object) , finalize sample code for java.lang.Object.finalize() definition code for java.lang.Object.finalize() , getClass sample code for java.lang.Object.getClass() definition code for java.lang.Object.getClass() , hashCode sample code for java.lang.Object.hashCode() definition code for java.lang.Object.hashCode() , notify sample code for java.lang.Object.notify() definition code for java.lang.Object.notify() , notifyAll sample code for java.lang.Object.notifyAll() definition code for java.lang.Object.notifyAll() , toString sample code for java.lang.Object.toString() definition code for java.lang.Object.toString() , wait sample code for java.lang.Object.wait() definition code for java.lang.Object.wait() , wait sample code for java.lang.Object.wait(long) definition code for java.lang.Object.wait(long) , wait sample code for java.lang.Object.wait(long, int) definition code for java.lang.Object.wait(long, int)
 

Constructor Detail

ThreadPoolExecutor.AbortPolicy sample code for java.util.concurrent.ThreadPoolExecutor.AbortPolicy() definition code for java.util.concurrent.ThreadPoolExecutor.AbortPolicy()

public ThreadPoolExecutor.AbortPolicy()
Creates an AbortPolicy.

Method Detail

rejectedExecution sample code for java.util.concurrent.ThreadPoolExecutor.AbortPolicy.rejectedExecution(java.lang.Runnable, java.util.concurrent.ThreadPoolExecutor) definition code for java.util.concurrent.ThreadPoolExecutor.AbortPolicy.rejectedExecution(java.lang.Runnable, java.util.concurrent.ThreadPoolExecutor)

public void rejectedExecution(Runnable sample code for java.lang.Runnable definition code for java.lang.Runnable  r,
                              ThreadPoolExecutor sample code for java.util.concurrent.ThreadPoolExecutor definition code for java.util.concurrent.ThreadPoolExecutor  e)
Always throws RejectedExecutionException.

Specified by:
rejectedExecution sample code for java.util.concurrent.RejectedExecutionHandler.rejectedExecution(java.lang.Runnable, java.util.concurrent.ThreadPoolExecutor) definition code for java.util.concurrent.RejectedExecutionHandler.rejectedExecution(java.lang.Runnable, java.util.concurrent.ThreadPoolExecutor) in interface RejectedExecutionHandler sample code for java.util.concurrent.RejectedExecutionHandler definition code for java.util.concurrent.RejectedExecutionHandler
Parameters:
r - the runnable task requested to be executed
e - the executor attempting to execute this task
Throws:
RejectedExecutionException sample code for java.util.concurrent.RejectedExecutionException definition code for java.util.concurrent.RejectedExecutionException - always.