|
||||||||||
| 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 ActionInvocation |
invocation
|
protected java.lang.String |
result
|
| Constructor Summary | |
|---|---|
BackgroundProcess(java.lang.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. |
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. |
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 ActionInvocation invocation
protected java.lang.String result
protected java.lang.Exception exception
protected boolean done
| Constructor Detail |
|---|
public BackgroundProcess(java.lang.String threadName,
ActionInvocation invocation,
int threadPriority)
threadName - The thread nameinvocation - The action invocationthreadPriority - The thread priority| Method Detail |
|---|
protected void beforeInvocation()
throws java.lang.Exception
java.lang.Exception - any exception thrown will be thrown, in turn, by the ExecuteAndWaitInterceptor
protected 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 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 | |||||||||