Class CachedThreadScheduler

    • Constructor Detail

      • CachedThreadScheduler

        public CachedThreadScheduler​(java.util.concurrent.ThreadFactory threadFactory)
    • Method Detail

      • start

        public void start()
        Description copied from interface: SchedulerLifecycle
        Allows the Scheduler instance to start threads and accept tasks on them.

        Implementations should make sure the call is idempotent and threadsafe.

        Specified by:
        start in interface SchedulerLifecycle
      • shutdown

        public void shutdown()
        Description copied from interface: SchedulerLifecycle
        Instructs the Scheduler instance to stop threads and stop accepting tasks on any outstanding Workers.

        Implementations should make sure the call is idempotent and threadsafe.

        Specified by:
        shutdown in interface SchedulerLifecycle