| java.lang.Object org.apache.struts2.interceptor.BackgroundProcess
BackgroundProcess | public class BackgroundProcess implements Serializable(Code) | | Background thread to be executed by the ExecuteAndWaitInterceptor.
|
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. | public Object | getAction() Retrieves the action. | public Exception | getException() Gets the exception if any was thrown during the execution of the background process. | public ActionInvocation | getInvocation() Retrieves the action invocation. | public String | getResult() Gets the result of the background process. | public boolean | isDone() Returns the status of the background process. |
done | protected boolean done(Code) | | |
invocation | protected ActionInvocation invocation(Code) | | |
BackgroundProcess | public BackgroundProcess(String threadName, ActionInvocation invocation, int threadPriority)(Code) | | Constructs a background process
Parameters: threadName - The thread name Parameters: invocation - The action invocation Parameters: threadPriority - The thread priority |
afterInvocation | protected void afterInvocation() throws Exception(Code) | | Called after the background thread determines the result code
from the ActionInvocation, but before the background thread is
marked as done.
throws: Exception - any exception thrown will be thrown, in turn, by the ExecuteAndWaitInterceptor |
beforeInvocation | protected void beforeInvocation() throws Exception(Code) | | Called before the background thread determines the result code
from the ActionInvocation.
throws: Exception - any exception thrown will be thrown, in turn, by the ExecuteAndWaitInterceptor |
getAction | public Object getAction()(Code) | | Retrieves the action.
the action. |
getException | public Exception getException()(Code) | | Gets the exception if any was thrown during the execution of the background process.
the exception or null if no exception was thrown. |
getInvocation | public ActionInvocation getInvocation()(Code) | | Retrieves the action invocation.
the action invocation |
getResult | public String getResult()(Code) | | Gets the result of the background process.
the result; null if not done. |
isDone | public boolean isDone()(Code) | | Returns the status of the background process.
true if finished, false otherwise |
|
|