Class ExecutorScheduler


  • public final class ExecutorScheduler
    extends Scheduler
    Scheduler that wraps an Executor instance and establishes the Scheduler contract upon it.

    Note that thread-hopping is unavoidable with this kind of Scheduler as we don't know about the underlying threading behavior of the executor.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) java.util.concurrent.Executor executor  
    • Constructor Summary

      Constructors 
      Constructor Description
      ExecutorScheduler​(java.util.concurrent.Executor executor)  
    • Field Detail

      • executor

        final java.util.concurrent.Executor executor
    • Constructor Detail

      • ExecutorScheduler

        public ExecutorScheduler​(java.util.concurrent.Executor executor)