|
||||||||||
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 java.lang.Object |
action
|
protected boolean |
done
|
protected java.lang.Exception |
exception
|
protected com.opensymphony.xwork2.ActionInvocation |
invocation
|
protected java.lang.String |
result
|
Constructor Summary | |
---|---|
BackgroundProcess(java.lang.String threadName,
com.opensymphony.xwork2.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. |
java.lang.Object |
getAction()
Retrieves the action. |
java.lang.Exception |
getException()
Gets the exception if any was thrown during the execution of the background process. |
com.opensymphony.xwork2.ActionInvocation |
getInvocation()
Retrieves the action invocation. |
java.lang.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 |
---|
protected java.lang.Object action
protected com.opensymphony.xwork2.ActionInvocation invocation
protected java.lang.String result
protected java.lang.Exception exception
protected boolean done
Constructor Detail |
---|
public BackgroundProcess(java.lang.String threadName, com.opensymphony.xwork2.ActionInvocation invocation, int threadPriority)
threadName
- The thread nameinvocation
- The action invocationthreadPriority
- The thread priorityMethod Detail |
---|
protected void beforeInvocation() throws java.lang.Exception
java.lang.Exception
- any exception thrown will be thrown, in turn, by the ExecuteAndWaitInterceptorprotected void afterInvocation() throws java.lang.Exception
java.lang.Exception
- any exception thrown will be thrown, in turn, by the ExecuteAndWaitInterceptorpublic java.lang.Object getAction()
public com.opensymphony.xwork2.ActionInvocation getInvocation()
public java.lang.String getResult()
public java.lang.Exception getException()
public boolean isDone()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |