|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectSOMA.network.connection.Command
SOMA.network.connection.QuickCommand
Comando
che non viene eseguito da un thread separato per ragioni di efficienza.
QuickCommand va utilizzato sono per comandi di rapida esecuzione, che non corrono il rischio di bloccare il server impedendo ai comandi successivi di essere eseguiti.
Field Summary |
Fields inherited from class SOMA.network.connection.Command |
env, ReturnConnection |
Constructor Summary | |
QuickCommand()
|
Method Summary | |
void |
start(Connection ReturnConnection,
Environment env)
Effettuate le inizializzazioni, chiama direttamente Command.run() .
|
Methods inherited from class SOMA.network.connection.Command |
Return, run, startOnError |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public QuickCommand()
Method Detail |
public void start(Connection ReturnConnection, Environment env)
Command.run()
.
Command.run()
deve poter essere eseguito tanto in fretta da rendere inefficiente la
creazione e l'avvio di un nuovo thread.
start
in class Command
ReturnConnection
- inizializza Command.ReturnConnection
.env
- inizializza Command.env
.
Effettuate le inizializzazioni, crea un nuovo thread ed avvia il metodo
Command.run()
, un metodo astratto che conterra' le operazioni svolte
dal comando.
QuickCommand
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |