Class SingleTaskConfiguration
java.lang.Object
org.springframework.cloud.task.configuration.SingleTaskConfiguration
@Order(-2147483648)
@AutoConfiguration
@ConditionalOnProperty(prefix="spring.cloud.task",
name="single-instance-enabled",
havingValue="true")
public class SingleTaskConfiguration
extends Object
Autoconfiguration of
SingleInstanceTaskListener
.- Since:
- 2.0.0
- Author:
- Glenn Renfro
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiontaskListener
(TaskNameResolver resolver, org.springframework.context.ApplicationContext applicationContext)
-
Constructor Details
-
SingleTaskConfiguration
public SingleTaskConfiguration()
-
-
Method Details
-
taskListener
@Bean public SingleInstanceTaskListener taskListener(TaskNameResolver resolver, org.springframework.context.ApplicationContext applicationContext)
-