Package org.apache.struts2.async

# Class AsyncAction

java.lang.Object
org.apache.struts2.async.AsyncAction

All Implemented Interfaces:
  `Callable`

public class AsyncAction extends Object implements Callable
A `Callable` with a timeout value and an `Executor`.

Since:
  6.0.0

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `static final String`
  `TIMEOUT`
  The action invocation was successful but did not return the result before timeout.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `AsyncAction(long timeout, Callable callable)`
  `AsyncAction(long timeout, Executor executor, Callable callable)`
  `AsyncAction(Callable callable)`
  `AsyncAction(Executor executor, Callable callable)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `Object`
  `call()`
  `Executor`
  `getExecutor()`
  `Long`
  `getTimeout()`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Field Details

  - ### TIMEOUT

    public static final String TIMEOUT
    The action invocation was successful but did not return the result before timeout.
    See Also:
      - Constant Field Values

- ## Constructor Details

  - ### AsyncAction

    public AsyncAction(Callable callable)

  - ### AsyncAction

    public AsyncAction(long timeout, Callable callable)

  - ### AsyncAction

    public AsyncAction(Executor executor, Callable callable)

  - ### AsyncAction

    public AsyncAction(long timeout, Executor executor, Callable callable)

- ## Method Details

  - ### getTimeout

    public Long getTimeout()

  - ### getExecutor

    public Executor getExecutor()

  - ### call

    public Object call() throws Exception
    Specified by:
      `call` in interface `Callable`
    Throws:
      `Exception`