Top Description Fields Constructors Methods
org.jboss.threads

pack-priv Class DelegatingExecutor

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

An executor that simply delegates to another executor. Use instances of this class to hide extra methods on another executor.

Field Summary

Modifier and TypeField and Description
private final Executor

Constructor Summary

AccessConstructor and Description
pack-priv
DelegatingExecutor(final Executor delegate)

Method Summary

Modifier and TypeMethod and Description
public void
execute(final Runnable
the task
command
)

Implements java.util.concurrent.Executor.execute.

Execute a task by passing it to the delegate executor.
public String
toString()

Overrides java.lang.Object.toString.

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

Field Detail

delegateback to summary
private final Executor delegate

Constructor Detail

DelegatingExecutorback to summary
pack-priv DelegatingExecutor(final Executor delegate)

Method Detail

executeback to summary
public void execute(final Runnable command)

Implements java.util.concurrent.Executor.execute.

Execute a task by passing it to the delegate executor.

Parameters
command:Runnable

the 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.