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 java.lang.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> java.util.concurrent.Callable<T> buildManagedTask(java.util.concurrent.Callable<T> task, java.lang.String identityName) 
      static java.lang.Runnable buildManagedTask(java.lang.Runnable task, java.lang.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 java.lang.Runnable buildManagedTask(java.lang.Runnable task,
                                                          java.lang.String identityName)
      • buildManagedTask

        public static <T> java.util.concurrent.Callable<T> buildManagedTask(java.util.concurrent.Callable<T> task,
                                                                            java.lang.String identityName)