Callable, a timeout value, and a task executor.
| Modifier and Type | Field and Description |
|---|---|
| private BeanFactory | |
| private final Callable | |
| private Runnable | |
| private Callable | |
| private final AsyncTaskExecutor | |
| private final String | |
| private final Long | |
| private Callable |
| Access | Constructor and Description |
|---|---|
| public | WebAsyncTask(Callable<V>
the callable for concurrent handling callable)Create a |
| public | WebAsyncTask(long
a timeout value in milliseconds timeout, Callable<V> the callable for concurrent handling callable)Create a |
| public | WebAsyncTask(Long
the timeout value in milliseconds; ignored if timeout, String nullthe name of an executor bean to use executorName, Callable<V> the callable for concurrent handling callable)Create a |
| public | WebAsyncTask(Long
the timeout value in milliseconds; ignored if timeout, AsyncTaskExecutor nullthe executor to use executor, Callable<V> the callable for concurrent handling callable)Create a |
| Modifier and Type | Method and Description |
|---|---|
| public Callable | |
| public AsyncTaskExecutor | getExecutor()
Return the AsyncTaskExecutor to use for concurrent handling,
or |
| pack-priv CallableProcessingInterceptor | |
| public Long | |
| public void | |
| public void | |
| public void | |
| public void | setBeanFactory(BeanFactory
owning BeanFactory (never beanFactory)null).
The bean can immediately call methods on the factory.Implements org. A |
| beanFactory | back to summary |
|---|---|
| private BeanFactory beanFactory | |
| callable | back to summary |
|---|---|
| private final Callable<V> callable | |
| completionCallback | back to summary |
|---|---|
| private Runnable completionCallback | |
| errorCallback | back to summary |
|---|---|
| private Callable<V> errorCallback | |
| executor | back to summary |
|---|---|
| private final AsyncTaskExecutor executor
| |
| executorName | back to summary |
|---|---|
| private final String executorName
| |
| timeout | back to summary |
|---|---|
| private final Long timeout
| |
| timeoutCallback | back to summary |
|---|---|
| private Callable<V> timeoutCallback | |
| WebAsyncTask | back to summary |
|---|---|
| public WebAsyncTask(Callable<V> callable) Create a
| |
| WebAsyncTask | back to summary |
|---|---|
| public WebAsyncTask(long timeout, Callable<V> callable) Create a
| |
| WebAsyncTask | back to summary |
|---|---|
| public WebAsyncTask(Long timeout, String executorName, Callable<V> callable) Create a | |
| WebAsyncTask | back to summary |
|---|---|
| public WebAsyncTask(Long timeout, AsyncTaskExecutor executor, Callable<V> callable) Create a
| |
| getCallable | back to summary |
|---|---|
| public Callable Return the | |
| getExecutor | back to summary |
|---|---|
| public AsyncTaskExecutor getExecutor() Return the AsyncTaskExecutor to use for concurrent handling,
or
| |
| getInterceptor | back to summary |
|---|---|
| pack-priv CallableProcessingInterceptor getInterceptor() | |
| getTimeout | back to summary |
|---|---|
| public Long getTimeout() Return the timeout value in milliseconds, or
| |
| onCompletion | back to summary |
|---|---|
| public void onCompletion(Runnable callback) Register code to invoke when the async request completes. This method is called from a container thread when an async request completed for any reason, including timeout and network error. | |
| onError | back to summary |
|---|---|
| public void onError(Callable<V> callback) Register code to invoke for an error during async request processing. This method is called from a container thread when an error occurred
while processing an async request before the
| |
| onTimeout | back to summary |
|---|---|
| public void onTimeout(Callable<V> callback) Register code to invoke when the async request times out. This method is called from a container thread when an async request times
out before the | |
| setBeanFactory | back to summary |
|---|---|
| public void setBeanFactory(BeanFactory beanFactory) Implements org. A This factory reference will automatically be set when
| |