Class HistoryQueryComponent

java.lang.Object
de.calamanari.pk.activeobject.HistoryQueryComponent

public class HistoryQueryComponent
extends java.lang.Object
History Query Component - the api from the client's point of view, it provides asynchronous access to the underlying engine to perform queries possibly taking some time.
Author:
Karl Eilebrecht
  • Constructor Summary

    Constructors
    Constructor Description
    HistoryQueryComponent​(AbstractHistoryQueryEngine engine, HistoryQueryScheduler scheduler)
    Creates a new query component leveraging the given engine
  • Method Summary

    Modifier and Type Method Description
    QueryRequestFuture queryHistoryData​(java.lang.String firstName, java.lang.String lastName, java.lang.String birthday)
    Triggers a query according to the given parameters and returns immediately.

    Methods inherited from class java.lang.Object

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

  • Method Details

    • queryHistoryData

      public QueryRequestFuture queryHistoryData​(java.lang.String firstName, java.lang.String lastName, java.lang.String birthday)
      Triggers a query according to the given parameters and returns immediately. The returned Future allows the client to poll for the result from time to time.
      Parameters:
      firstName - person's first name to query for
      lastName - person's last name to query for
      birthday - person's birthday to query for
      Returns:
      Future for communication and result retrieval