Interface ExecPrioritizer<KEYTYPE,​DATATYPE,​ROWDATAMANAGERTYPE extends RowDataManager<KEYTYPE,​DATATYPE>>

Type Parameters:
KEYTYPE - unique ID key type
DATATYPE - data type
All Known Implementing Classes:
EquityPrioritizer, FuturesPrioritizer

public interface ExecPrioritizer<KEYTYPE,​DATATYPE,​ROWDATAMANAGERTYPE extends RowDataManager<KEYTYPE,​DATATYPE>>
An interface for prioritizing the execution of table rows.
  • Method Summary

    Modifier and Type Method Description
    void execHappened​(DATATYPE data)
    A new execution happened using this row data.
    int priority​(ROWDATAMANAGERTYPE dataManager, long index)
    Compute the priority for processing the data at the indicated table index.
  • Method Details

    • priority

      int priority​(ROWDATAMANAGERTYPE dataManager, long index)
      Compute the priority for processing the data at the indicated table index.
      Parameters:
      dataManager - interface for accessing and querying data contained in rows of a dynamic table.
      index - index of the data in the fit data manager source table.
      Returns:
      priority of processing the data at the indicated index. Higher numbers are higher priority.
    • execHappened

      void execHappened​(DATATYPE data)
      A new execution happened using this row data.
      Parameters:
      data - data used in the execution.