Class HistoryQueryScheduler

java.lang.Object
de.calamanari.pk.activeobject.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

    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 Details

    • 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 Details

    • schedule

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