Package 

Class CachedThreadScheduler

    • Method Summary

      Modifier and Type Method Description
      void start() Allows the Scheduler instance to start threadsand accept tasks on them.
      void shutdown() Instructs the Scheduler instance to stop threadsand stop accepting tasks on any outstanding Workers.
      Scheduler.Worker createWorker() Retrieves or creates a new Scheduler.Worker that represents serial execution of actions.
      • Methods inherited from class com.tds.common.reactor.schedulers.Scheduler

        now
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CachedThreadScheduler

        CachedThreadScheduler(ThreadFactory threadFactory)
    • Method Detail

      • start

         void start()

        Allows the Scheduler instance to start threadsand accept tasks on them.

        Implementations should make sure the call is idempotent and thread-safe.

      • shutdown

         void shutdown()

        Instructs the Scheduler instance to stop threadsand stop accepting tasks on any outstanding Workers.

        Implementations should make sure the call is idempotent and thread-safe.