Class MqttGracefulExecutor

  • All Implemented Interfaces:
    java.util.concurrent.Executor , org.springframework.context.Lifecycle , org.springframework.context.Phased , org.springframework.context.SmartLifecycle

    
    public final class MqttGracefulExecutor
     implements Executor, SmartLifecycle
                        

    Executor subclass implementing SmartLifecycle to wait for active tasks during stop.

    This delegates to a ThreadPoolExecutor with the number of processors as max threads.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      Unit execute(Runnable task)
      Unit start()
      Unit stop()
      Boolean isRunning()
      Integer getPhase()
      • Methods inherited from class org.springframework.context.SmartLifecycle

        isAutoStartup, stop
      • Methods inherited from class java.lang.Object

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