Class ModelFarmTick<KEYTYPE,DATATYPE,ROWDATAMANAGERTYPE extends RowDataManager<KEYTYPE,DATATYPE>>

java.lang.Object
io.deephaven.modelfarm.ModelFarmBase<DATATYPE>
io.deephaven.modelfarm.RDMModelFarm<KEYTYPE,DATATYPE,ROWDATAMANAGERTYPE>
io.deephaven.modelfarm.ModelFarmTick<KEYTYPE,DATATYPE,ROWDATAMANAGERTYPE>
Type Parameters:
KEYTYPE - unique ID key type
DATATYPE - data type
All Implemented Interfaces:
ModelFarm

public class ModelFarmTick<KEYTYPE,DATATYPE,ROWDATAMANAGERTYPE extends RowDataManager<KEYTYPE,DATATYPE>> extends RDMModelFarm<KEYTYPE,DATATYPE,ROWDATAMANAGERTYPE>
A multithreaded resource to execute data driven models. Every time a row of the data table ticks, the unique identifier is executed using the data from the tick. Successive executions for a unique identifier are processed in order.

This is useful for executing against historical data at a regular interval.

  • Constructor Details

    • ModelFarmTick

      public ModelFarmTick(int nThreads, Model<DATATYPE> model, ROWDATAMANAGERTYPE dataManager, int maxQueueSize)
      Create a multithreaded resource to execute data driven models.
      Parameters:
      nThreads - number of worker threads.
      model - model to execute.
      dataManager - interface for accessing and querying data contained in rows of a dynamic table.
      maxQueueSize - number of elements in the work queue backlog before the blocking new updates.
  • Method Details