org.jboss.jms.server.remoting
Class DirectThreadPool
java.lang.Object
org.jboss.jms.server.remoting.DirectThreadPool
public class DirectThreadPool
- extends java.lang.Object
A "noop" thread pool that just forwards the invocations, without doing any kind of pooling.
We use it for the "socket" remoting callback server.
- Version:
- $Revision: 2977 $
$Id: DirectThreadPool.java 2977 2007-08-08 15:32:14Z timfox $
- Author:
- Ovidiu Feodorov
Method Summary |
void |
run(java.lang.Runnable runnable)
|
void |
run(java.lang.Runnable runnable,
long startTimeout,
long completeTimeout)
|
void |
runTask(Task task)
|
void |
runTaskWrapper(TaskWrapper wrapper)
|
void |
stop(boolean immediate)
|
void |
waitForTasks()
|
void |
waitForTasks(long maxWaitTime)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DirectThreadPool
public DirectThreadPool()
stop
public void stop(boolean immediate)
waitForTasks
public void waitForTasks()
throws java.lang.InterruptedException
- Throws:
java.lang.InterruptedException
waitForTasks
public void waitForTasks(long maxWaitTime)
throws java.lang.InterruptedException
- Throws:
java.lang.InterruptedException
runTaskWrapper
public void runTaskWrapper(TaskWrapper wrapper)
runTask
public void runTask(Task task)
run
public void run(java.lang.Runnable runnable)
run
public void run(java.lang.Runnable runnable,
long startTimeout,
long completeTimeout)
Copyright © 2006 JBoss Inc. All Rights Reserved.