org.compiere.util
Class ASyncWorker
java.lang.Object
java.lang.Thread
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
| 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 |
ASyncWorker
public ASyncWorker(ASyncProcess parent,
ProcessInfo pi)
- Constructor
- Parameters:
parent - Parent Processpi - process info
executeSync
public static ProcessInfo executeSync(ASyncProcess parent,
ProcessInfo pi)
- Execute method Synchronously
- Parameters:
parent - parentpi - 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® is a registered trademark of ComPiere, Inc. ©2004-2008 HumanFlash.com All rights reserved.