org.apache.struts2.interceptor
类 BackgroundProcess

java.lang.Object
  继承者 org.apache.struts2.interceptor.BackgroundProcess
所有已实现的接口:
Serializable

public class BackgroundProcess
extends Object
implements Serializable

Background thread to be executed by the ExecuteAndWaitInterceptor.

另请参见:
序列化表格

构造方法摘要
BackgroundProcess(String threadName, com.opensymphony.xwork2.ActionInvocation invocation, int threadPriority)
          Constructs a background process
 
方法摘要
 Object getAction()
          Retrieves the action.
 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.
 String getResult()
          Gets the result of the background process.
 boolean isDone()
          Returns the status of the background process.
 
从类 java.lang.Object 继承的方法
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

BackgroundProcess

public BackgroundProcess(String threadName,
                         com.opensymphony.xwork2.ActionInvocation invocation,
                         int threadPriority)
Constructs a background process

参数:
threadName - The thread name
invocation - The action invocation
threadPriority - The thread priority
方法详细信息

getAction

public Object getAction()
Retrieves the action.

返回:
the action.

getInvocation

public com.opensymphony.xwork2.ActionInvocation getInvocation()
Retrieves the action invocation.

返回:
the action invocation

getResult

public String getResult()
Gets the result of the background process.

返回:
the result; null if not done.

getException

public Exception getException()
Gets the exception if any was thrown during the execution of the background process.

返回:
the exception or null if no exception was thrown.

isDone

public boolean isDone()
Returns the status of the background process.

返回:
true if finished, false otherwise