org.jacorb.notification.engine
Class DefaultTaskExecutor

java.lang.Object
  extended byorg.jacorb.notification.engine.DefaultTaskExecutor
All Implemented Interfaces:
org.picocontainer.Disposable, Disposable, edu.emory.mathcs.backport.java.util.concurrent.Executor, NotifyingDisposable, TaskExecutor

public class DefaultTaskExecutor
extends java.lang.Object
implements TaskExecutor

Version:
$Id: DefaultTaskExecutor.java,v 1.4 2005/11/11 19:37:44 alphonse.bendt Exp $
Author:
Alphonse Bendt

Constructor Summary
DefaultTaskExecutor(java.lang.String string, int numberOfThreads)
           
DefaultTaskExecutor(java.lang.String name, int numberOfThreads, boolean mayDie)
           
 
Method Summary
 void dispose()
           
 void execute(java.lang.Runnable runnable)
           
 void registerDisposable(Disposable d)
          the hooks registered by this method will be run when dispose is called.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultTaskExecutor

public DefaultTaskExecutor(java.lang.String name,
                           int numberOfThreads,
                           boolean mayDie)

DefaultTaskExecutor

public DefaultTaskExecutor(java.lang.String string,
                           int numberOfThreads)
Method Detail

dispose

public void dispose()
Specified by:
dispose in interface org.picocontainer.Disposable

registerDisposable

public void registerDisposable(Disposable d)
Description copied from interface: NotifyingDisposable
the hooks registered by this method will be run when dispose is called.

Specified by:
registerDisposable in interface NotifyingDisposable

execute

public void execute(java.lang.Runnable runnable)
Specified by:
execute in interface edu.emory.mathcs.backport.java.util.concurrent.Executor