public class BackgroundProcess extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
protected boolean |
done |
protected Exception |
exception |
protected ActionInvocation |
invocation |
protected String |
result |
Constructor and Description |
---|
BackgroundProcess(String threadName,
ActionInvocation invocation,
int threadPriority)
Constructs a background process
|
Modifier and Type | Method and Description |
---|---|
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.
|
protected transient ActionInvocation invocation
protected transient Exception exception
protected String result
protected boolean done
public BackgroundProcess(String threadName, ActionInvocation invocation, int threadPriority)
threadName
- The thread nameinvocation
- The action invocationthreadPriority
- The thread priorityprotected void beforeInvocation() throws Exception
Exception
- any exception thrown will be thrown, in turn, by the ExecuteAndWaitInterceptorprotected 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()
Copyright © 2000–2020 Apache Software Foundation. All rights reserved.