spring-framework / org.springframework.web.context.request.async / WebAsyncTask / <init>

<init>

WebAsyncTask(callable: Callable<V>)

Create a WebAsyncTask wrapping the given Callable.

Parameters

callable - the callable for concurrent handling

WebAsyncTask(timeout: Long, callable: Callable<V>)

Create a WebAsyncTask with a timeout value and a Callable.

Parameters

timeout - a timeout value in milliseconds

callable - the callable for concurrent handling

WebAsyncTask(@Nullable timeout: Long, executorName: String, callable: Callable<V>)

Create a WebAsyncTask with a timeout value, an executor name, and a Callable.

Parameters

timeout - timeout value in milliseconds; ignored if null

executorName - the name of an executor bean to use

callable - the callable for concurrent handling

WebAsyncTask(@Nullable timeout: Long, executor: AsyncTaskExecutor, callable: Callable<V>)

Create a WebAsyncTask with a timeout value, an executor instance, and a Callable.

Parameters

timeout - timeout value in milliseconds; ignored if null

executor - the executor to use

callable - the callable for concurrent handling