org.norther.tammi.core.thread
Interface Executor

All Superinterfaces:
Executor, ExecutorService, Startable
All Known Subinterfaces:
PooledExecutor, ThreadedExecutor
All Known Implementing Classes:
DefaultPooledExecutor, DefaultThreadedExecutor

public interface Executor
extends ExecutorService, Startable

An interface to executors that can execute Runnables using different thread models.

Version:
$Id: Executor.java,v 1.7 2009/09/28 15:08:43 cvsimp Exp $
Author:
Ilkka Priha

Method Summary
 int getActiveCount()
          Gets the number of currently running tasks.
 long getCompletedTaskCount()
          Gets the total number of completed tasks.
 long getTaskCount()
          Gets the total number of completed, active or scheduled tasks.
 
Methods inherited from interface java.util.concurrent.ExecutorService
awaitTermination, invokeAll, invokeAll, invokeAny, invokeAny, isShutdown, isTerminated, shutdown, shutdownNow, submit, submit, submit
 
Methods inherited from interface java.util.concurrent.Executor
execute
 
Methods inherited from interface org.norther.tammi.core.base.Startable
isStarted, start, stop
 

Method Detail

getCompletedTaskCount

long getCompletedTaskCount()
Gets the total number of completed tasks.

Returns:
the number of completed tasks.

getActiveCount

int getActiveCount()
Gets the number of currently running tasks.

Returns:
the number of active tasks.

getTaskCount

long getTaskCount()
Gets the total number of completed, active or scheduled tasks.

Returns:
the number of any tasks.


Copyright © 2004 The Norther Organization. All rights reserved.