| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.struts2.interceptor.BackgroundProcess
public class BackgroundProcess
Background thread to be executed by the ExecuteAndWaitInterceptor.
| Field Summary | |
|---|---|
protected  Object | 
action
 | 
protected  boolean | 
done
 | 
protected  Exception | 
exception
 | 
protected  ActionInvocation | 
invocation
 | 
protected  String | 
result
 | 
private static long | 
serialVersionUID
 | 
| Constructor Summary | |
|---|---|
BackgroundProcess(String threadName,
                  ActionInvocation invocation,
                  int threadPriority)
Constructs a background process  | 
|
| Method Summary | |
|---|---|
protected  void | 
afterInvocation()
Called after the background thread determines the result code from the ActionInvocation, but before the background thread is marked as done.  | 
protected  void | 
beforeInvocation()
Called before the background thread determines the result code from the ActionInvocation.  | 
 Object | 
getAction()
Retrieves the action.  | 
 Exception | 
getException()
Gets the exception if any was thrown during the execution of the background process.  | 
 ActionInvocation | 
getInvocation()
Retrieves the action invocation.  | 
 String | 
getResult()
Gets the result of the background process.  | 
 boolean | 
isDone()
Returns the status of the background process.  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
private static final long serialVersionUID
protected Object action
protected ActionInvocation invocation
protected String result
protected Exception exception
protected boolean done
| Constructor Detail | 
|---|
public BackgroundProcess(String threadName,
                         ActionInvocation invocation,
                         int threadPriority)
threadName - The thread nameinvocation - The action invocationthreadPriority - The thread priority| Method Detail | 
|---|
protected void beforeInvocation()
                         throws Exception
Exception - any exception thrown will be thrown, in turn, by the ExecuteAndWaitInterceptor
protected void afterInvocation()
                        throws Exception
Exception - any exception thrown will be thrown, in turn, by the ExecuteAndWaitInterceptorpublic Object getAction()
public ActionInvocation getInvocation()
public String getResult()
public Exception getException()
public boolean isDone()
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||