|
Jadex 0.96-beta1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjadex.util.concurrent.AsyncManager
public class AsyncManager
The async manager helps decoupling calls that should be executed on a separate thread. In async mode the own manager thread executes these calls asynchronously. In sync mode calls are directly executed on the caller thread. The method to be called for sync/async execution is execute(ICommand com, Object args)
Constructor Summary | |
---|---|
AsyncManager(boolean async)
Create a new async manager. |
Method Summary | |
---|---|
void |
execute(ICommand com,
Object args)
Delegation method that invokes the command with the given args. |
boolean |
isAsync()
Test in which mode the manager is running. |
void |
setAsync(boolean async)
Set the async mode. |
void |
shutdown()
Shutdown the manager. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AsyncManager(boolean async)
async
- True, for asynchronous execute calls.Method Detail |
---|
public void execute(ICommand com, Object args)
public boolean isAsync()
public void setAsync(boolean async)
async
- True, for async mode.public void shutdown()
|
Jadex 0.96-beta1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright (C) 2002-2007 Lars Braubach, Alexander Pokahr - University of Hamburg. Use is subject to license terms.