org.springframework.scheduling.concurrent

## Class ConcurrentTaskExecutor.ManagedTaskBuilder

- java.lang.Object
- - org.springframework.scheduling.concurrent.ConcurrentTaskExecutor.ManagedTaskBuilder

- Enclosing class:
    ConcurrentTaskExecutor

      protected static class ConcurrentTaskExecutor.ManagedTaskBuilder
      extends Object

  Delegate that wraps a given Runnable/Callable with a JSR-236 ManagedTask, exposing a long-running hint based on `SchedulingAwareRunnable` and a given identity name.

- - ### Constructor Summary

    Constructors
    Modifier | Constructor and Description
    --- | ---
    `protected` | `ManagedTaskBuilder()`

  - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static <T> Callable<T>` | `buildManagedTask(Callable<T> task, String identityName)`
    `static Runnable` | `buildManagedTask(Runnable task, String identityName)`

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

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

- - ### Constructor Detail

    - #### ManagedTaskBuilder

          protected ManagedTaskBuilder()

  - ### Method Detail

    - #### buildManagedTask

          public static Runnable buildManagedTask(Runnable task,
                                                  String identityName)

    - #### buildManagedTask

          public static <T> Callable<T> buildManagedTask(Callable<T> task,
                                                         String identityName)