Package org.springframework.cloud.task.configuration

# Class SingleTaskConfiguration

java.lang.Object
org.springframework.cloud.task.configuration.SingleTaskConfiguration

@Order(-2147483648) @Configuration(proxyBeanMethods=false) @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

  Constructors
  Constructor
  Description
  `SingleTaskConfiguration()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `SingleInstanceTaskListener`
  `taskListener(TaskNameResolver resolver)`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### SingleTaskConfiguration

    public SingleTaskConfiguration()

- ## Method Details

  - ### taskListener

    @Bean public SingleInstanceTaskListener taskListener(TaskNameResolver resolver)