Top Fields Constructors Methods
org.jboss.threads

pack-priv Class HandoffRejectedExecutionHandler

extends Object
implements RejectedExecutionHandler
Class Inheritance
All Implemented Interfaces
java.util.concurrent.RejectedExecutionHandler
Imports
java.util.concurrent.RejectedExecutionHandler, .Executor, .ThreadPoolExecutor

Field Summary

Modifier and TypeField and Description
private final Executor

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public void
rejectedExecution(final Runnable
the runnable task requested to be executed
r
,
final ThreadPoolExecutor
the executor attempting to execute this task
executor
)

Implements java.util.concurrent.RejectedExecutionHandler.rejectedExecution.

Method that may be invoked by a ThreadPoolExecutor when execute cannot accept a task.
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

targetback to summary
private final Executor target

Constructor Detail

HandoffRejectedExecutionHandlerback to summary
pack-priv HandoffRejectedExecutionHandler(final Executor target)

Method Detail

rejectedExecutionback to summary
public void rejectedExecution(final Runnable r, final ThreadPoolExecutor executor)

Implements java.util.concurrent.RejectedExecutionHandler.rejectedExecution.

Doc from java.util.concurrent.RejectedExecutionHandler.rejectedExecution.

Method that may be invoked by a ThreadPoolExecutor when execute cannot accept a task. This may occur when no more threads or queue slots are available because their bounds would be exceeded, or upon shutdown of the Executor.

In the absence of other alternatives, the method may throw an unchecked RejectedExecutionException, which will be propagated to the caller of execute.

Parameters
r:Runnable

the runnable task requested to be executed

executor:ThreadPoolExecutor

the executor attempting to execute this task

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.