Class DataflowAsyncAutoConfiguration
java.lang.Object
org.springframework.cloud.dataflow.server.config.DataflowAsyncAutoConfiguration
- All Implemented Interfaces:
AsyncConfigurer
@AutoConfiguration
@ConditionalOnBean(org.springframework.cloud.dataflow.server.config.EnableDataFlowServerConfiguration.Marker.class)
@ConditionalOnProperty(prefix="spring.cloud.dataflow.async",
name="enabled",
havingValue="true")
@AutoConfigureAfter(org.springframework.boot.autoconfigure.task.TaskExecutionAutoConfiguration.class)
@EnableAsync
public class DataflowAsyncAutoConfiguration
extends Object
implements AsyncConfigurer
Enables async executions for the Spring Cloud Dataflow server.
Uses the Spring Boot autoconfigured
TaskExecutorBuilder
to create an async executor and register it
with name DATAFLOW_ASYNC_EXECUTOR
.- Author:
- Tobias Soloschenko
-
Field Summary
-
Constructor Summary
ConstructorDescriptionDataflowAsyncAutoConfiguration
(org.springframework.boot.task.ThreadPoolTaskExecutorBuilder taskExecutorBuilder) -
Method Summary
Modifier and TypeMethodDescription
-
Field Details
-
ASYNC_PROPS_PREFIX
- See Also:
-
DATAFLOW_ASYNC_EXECUTOR
- See Also:
-
-
Constructor Details
-
DataflowAsyncAutoConfiguration
public DataflowAsyncAutoConfiguration(org.springframework.boot.task.ThreadPoolTaskExecutorBuilder taskExecutorBuilder)
-
-
Method Details
-
getAsyncExecutor
- Specified by:
getAsyncExecutor
in interfaceAsyncConfigurer
-
getAsyncUncaughtExceptionHandler
- Specified by:
getAsyncUncaughtExceptionHandler
in interfaceAsyncConfigurer
-