org.jnp.server
Class ThreadPoolToExecutor

java.lang.Object
  extended by org.jnp.server.ThreadPoolToExecutor
All Implemented Interfaces:
Executor

public class ThreadPoolToExecutor
extends Object
implements Executor

Adapts the legacy ThreadPool to an Executor

Version:
$Revision:$
Author:
Scott.Stark@jboss.org

Constructor Summary
ThreadPoolToExecutor()
           
ThreadPoolToExecutor(org.jboss.util.threadpool.ThreadPool pool)
           
 
Method Summary
 void execute(Runnable command)
           
 org.jboss.util.threadpool.ThreadPool getPool()
           
 void setPool(org.jboss.util.threadpool.ThreadPool pool)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThreadPoolToExecutor

public ThreadPoolToExecutor()

ThreadPoolToExecutor

public ThreadPoolToExecutor(org.jboss.util.threadpool.ThreadPool pool)
Method Detail

getPool

public org.jboss.util.threadpool.ThreadPool getPool()

setPool

public void setPool(org.jboss.util.threadpool.ThreadPool pool)

execute

public void execute(Runnable command)
Specified by:
execute in interface Executor


Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.