com.googlecode.jpattern.core.asynccommand
Class AAsyncCommand
java.lang.Object
com.googlecode.jpattern.core.asynccommand.AAsyncCommand
- All Implemented Interfaces:
- IAsyncCommand, java.io.Serializable, java.lang.Runnable
public abstract class AAsyncCommand
- extends java.lang.Object
- implements IAsyncCommand, java.lang.Runnable
- Author:
- Francesco Cina'
27/feb/2011
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AAsyncCommand
public AAsyncCommand(IAsyncCommand asyncCommand)
getAsyncCommand
protected IAsyncCommand getAsyncCommand()
exec
public IAsyncCommandResult exec(IAsyncCommandPool asyncCommandPool)
- This method launch the execution of the command (or chain of commands).
Every command in the chain will be managed by an asyncCommandPool object
- Specified by:
exec in interface IAsyncCommand
- Parameters:
asyncCommandPool - the pool in which the command will runs
- Returns:
- the result of the execution
visit
public void visit(IProvider provider)
- Specified by:
visit in interface IAsyncCommand
getProvider
protected IProvider getProvider()
run
public void run()
- Specified by:
run in interface java.lang.Runnable
result
protected abstract void result(ICommandResult result)
Copyright © 2011. All Rights Reserved.