org.jboss.threads
Class ProtectedExecutor

java.lang.Object
  extended by org.jboss.threads.ProtectedExecutor
All Implemented Interfaces:
java.util.concurrent.Executor
Direct Known Subclasses:
ProtectedDirectExecutor

public class ProtectedExecutor
extends java.lang.Object
implements java.util.concurrent.Executor

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


Constructor Summary
ProtectedExecutor(java.util.concurrent.Executor delegate)
           
 
Method Summary
 void execute(java.lang.Runnable command)
          Execute a task by passing it to the delegate executor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProtectedExecutor

public ProtectedExecutor(java.util.concurrent.Executor delegate)
Method Detail

execute

public void execute(java.lang.Runnable command)
Execute a task by passing it to the delegate executor.

Specified by:
execute in interface java.util.concurrent.Executor
Parameters:
command - the task


Copyright © 2011. All Rights Reserved.