Compiere 3.1

org.compiere.util
Class ASyncWorker

java.lang.Object
  extended by java.lang.Thread
      extended by org.compiere.util.ASyncWorker
All Implemented Interfaces:
Runnable

public class ASyncWorker
extends Thread

ASync Worker for starting methods in classes implementing ASyncProcess

Version:
$Id: ASyncWorker.java,v 1.2 2006/07/30 00:51:05 jjanke Exp $
Author:
Jorg Janke

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
ASyncWorker(ASyncProcess parent, ProcessInfo pi)
          Constructor
 
Method Summary
static ProcessInfo executeSync(ASyncProcess parent, ProcessInfo pi)
          Execute method Synchronously
 ProcessInfo getResult()
          Get Result (usually not used as result is returned via unlockUI
 void run()
          The Worker Method
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ASyncWorker

public ASyncWorker(ASyncProcess parent,
                   ProcessInfo pi)
Constructor

Parameters:
parent - Parent Process
pi - process info
Method Detail

executeSync

public static ProcessInfo executeSync(ASyncProcess parent,
                                      ProcessInfo pi)
Execute method Synchronously

Parameters:
parent - parent
pi - process info
Returns:
result

run

public void run()
The Worker Method

Specified by:
run in interface Runnable
Overrides:
run in class Thread

getResult

public ProcessInfo getResult()
Get Result (usually not used as result is returned via unlockUI

Returns:
result

Compiere 3.1

Compiere® is a registered trademark of ComPiere, Inc. ©2004-2008 HumanFlash.com All rights reserved.