@Configuration(proxyBeanMethods=false) @ConditionalOnBean(value=org.springframework.cloud.dataflow.server.config.EnableDataFlowServerConfiguration.Marker.class) @ConditionalOnProperty(prefix="spring.cloud.dataflow.async", name="enabled", havingValue="true") @AutoConfigureAfter(value=org.springframework.boot.autoconfigure.task.TaskExecutionAutoConfiguration.class) @EnableAsync public class DataflowAsyncAutoConfiguration extends Object implements AsyncConfigurer
TaskExecutorBuilder
to create an async executor and register it
with name DATAFLOW_ASYNC_EXECUTOR
.Modifier and Type | Field and Description |
---|---|
static String |
ASYNC_PROPS_PREFIX |
static String |
DATAFLOW_ASYNC_EXECUTOR |
Constructor and Description |
---|
DataflowAsyncAutoConfiguration(org.springframework.boot.task.TaskExecutorBuilder taskExecutorBuilder) |
Modifier and Type | Method and Description |
---|---|
Executor |
getAsyncExecutor() |
AsyncUncaughtExceptionHandler |
getAsyncUncaughtExceptionHandler() |
public static final String ASYNC_PROPS_PREFIX
public static final String DATAFLOW_ASYNC_EXECUTOR
public DataflowAsyncAutoConfiguration(org.springframework.boot.task.TaskExecutorBuilder taskExecutorBuilder)
@Bean(name="dataflowAsyncExecutor") public Executor getAsyncExecutor()
getAsyncExecutor
in interface AsyncConfigurer
public AsyncUncaughtExceptionHandler getAsyncUncaughtExceptionHandler()
getAsyncUncaughtExceptionHandler
in interface AsyncConfigurer
Copyright © 2024 Pivotal Software, Inc.. All rights reserved.