net.sourceforge.acelogger.execution.manager
Class PooledExecutorManager

java.lang.Object
  extended by net.sourceforge.acelogger.execution.manager.BaseExecutorManager
      extended by net.sourceforge.acelogger.execution.manager.BaseUtilConcurrentExecutorManager
          extended by net.sourceforge.acelogger.execution.manager.PooledExecutorManager
All Implemented Interfaces:
ExecutorManager, Identifiable

public class PooledExecutorManager
extends BaseUtilConcurrentExecutorManager

An implementation of ExecutorManager that runs tasks asynchronously, so the caller do not get blocked until task completion. The execution order is NOT guaranteed because of the thread pool used for task execution. The tasks waits in a queue before they're executed by one of the threads of the pool.

Since:
1.0.0
Version:
1.0.0
Author:
Zardi (https://sourceforge.net/users/daniel_zardi)

Constructor Summary
PooledExecutorManager(String identifier, int poolSize)
          Constructs a new PooledExecutorManager with the supplied identifier and the maximum number of threads used for execution.
 
Method Summary
 
Methods inherited from class net.sourceforge.acelogger.execution.manager.BaseUtilConcurrentExecutorManager
awaitTermination, execute, isTerminated, orderProperShutdown, terminateAndRetrieveTasks
 
Methods inherited from class net.sourceforge.acelogger.execution.manager.BaseExecutorManager
executeAll, getIdentifier
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PooledExecutorManager

public PooledExecutorManager(String identifier,
                             int poolSize)
Constructs a new PooledExecutorManager with the supplied identifier and the maximum number of threads used for execution.

Parameters:
identifier - The string that identifies this executor manager.
poolSize - The maximum numbers of threads in the pool of this executor.
Since:
1.0.0


Copyright © 2007-2010 The AceLogger Team. All Rights Reserved.