com.googlecode.jpattern.core.asynccommand
Class QueueAsyncCommandPool

java.lang.Object
  extended by com.googlecode.jpattern.core.asynccommand.QueueAsyncCommandPool
All Implemented Interfaces:
IAsyncCommandPool

public class QueueAsyncCommandPool
extends java.lang.Object
implements IAsyncCommandPool

Author:
Francesco Cina' 27/feb/2011 This implementation of IAsyncCommandPool is a pool which manage a queue of runnable objects and runs a prefixed maximum of Thread at the same time.

Constructor Summary
QueueAsyncCommandPool(java.lang.String name, int maxWaitingCommands, int maxConcurrentThreads, ILoggerService loggerService)
           
 
Method Summary
 void addCommandToPool(AAsyncCommand asyncCommand)
           
protected  void startPool()
           
protected  void stopPool()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueueAsyncCommandPool

public QueueAsyncCommandPool(java.lang.String name,
                             int maxWaitingCommands,
                             int maxConcurrentThreads,
                             ILoggerService loggerService)
Method Detail

addCommandToPool

public void addCommandToPool(AAsyncCommand asyncCommand)
Specified by:
addCommandToPool in interface IAsyncCommandPool

stopPool

protected void stopPool()

startPool

protected void startPool()


Copyright © 2011. All Rights Reserved.