com.googlecode.jpattern.core.command
Class SimpleAsyncCommandExecutor
java.lang.Object
com.googlecode.jpattern.core.command.SimpleAsyncCommandExecutor
- All Implemented Interfaces:
- ICommandExecutor, Serializable
public class SimpleAsyncCommandExecutor
- extends Object
- implements ICommandExecutor
- Author:
- Francesco Cina'
27/feb/2011
This implementation of IAsyncCommandPool is a pool which simply
starts every new command in a new Thread.
No controls exist on the total number of Threads running.
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleAsyncCommandExecutor
public SimpleAsyncCommandExecutor()
addCommandToPool
public void addCommandToPool(ACommand asyncCommand)
- Specified by:
addCommandToPool in interface ICommandExecutor
executeNext
public boolean executeNext(ICommandResult result)
- Specified by:
executeNext in interface ICommandExecutor
getChainStrategy
public IChainStrategy getChainStrategy()
- Specified by:
getChainStrategy in interface ICommandExecutor
Copyright © 2011. All Rights Reserved.