Class HistoryQueryScheduler


  • public class HistoryQueryScheduler
    extends java.lang.Object
    History Query Scheduler - isolates the history query component from thread management and control of maximum number of parallel calls.
    Author:
    Karl Eilebrecht
    • Constructor Summary

      Constructors 
      Constructor Description
      HistoryQueryScheduler​(int maxParallelWorkers)
      Creates new scheduler allowing the specified amount of parallel executions
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void schedule​(QueryRequest task)
      schedules the specified task and returns immediately
      • Methods inherited from class java.lang.Object

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

      • HistoryQueryScheduler

        public HistoryQueryScheduler​(int maxParallelWorkers)
        Creates new scheduler allowing the specified amount of parallel executions
        Parameters:
        maxParallelWorkers - number of calls that shall execute in parallel
    • Method Detail

      • schedule

        public void schedule​(QueryRequest task)
        schedules the specified task and returns immediately
        Parameters:
        task - some task to be executed in the future