org.jacorb.notification.engine

Class TaskExecutor

Implemented Interfaces:
Executor, Disposable

public class TaskExecutor
extends java.lang.Object
implements Executor, Disposable

Version:
$Id: TaskExecutor.java,v 1.3 2004/05/06 12:39:59 nicolas Exp $

Author:
Alphonse Bendt

Constructor Summary

TaskExecutor(String name, int numberOfThreads)

Method Summary

void
dispose()
void
execute(Runnable r)
static TaskExecutor
getDefaultExecutor()
boolean
isTaskQueued()

Constructor Details

TaskExecutor

public TaskExecutor(String name,
                    int numberOfThreads)

Method Details

dispose

public void dispose()
Specified by:
dispose in interface Disposable


execute

public void execute(Runnable r)
            throws InterruptedException


getDefaultExecutor

public static TaskExecutor getDefaultExecutor()


isTaskQueued

public boolean isTaskQueued()