Record Class QueryPipelineConfig

java.lang.Object
java.lang.Record
com.inductiveautomation.historian.gateway.api.query.pipeline.QueryPipelineConfig

public record QueryPipelineConfig(int perKeyBufferSize, int maxConcurrentKeys, Duration backpressureTimeout, Duration watermarkSilenceFallback, AggregateCatalogService catalog, QueryEngineRouter engineRouter, ExecutorService executor, QueryPipelineConfig.LiveValues liveValues) extends Record
Pipeline-wide tunables. Records-as-config; immutable.
  • Constructor Details

    • QueryPipelineConfig

      public QueryPipelineConfig(int perKeyBufferSize, int maxConcurrentKeys, Duration backpressureTimeout, Duration watermarkSilenceFallback, AggregateCatalogService catalog, QueryEngineRouter engineRouter, ExecutorService executor)
      A configuration that never reads a live tag value.
    • QueryPipelineConfig

      public QueryPipelineConfig(int perKeyBufferSize, int maxConcurrentKeys, Duration backpressureTimeout, Duration watermarkSilenceFallback, AggregateCatalogService catalog, QueryEngineRouter engineRouter, ExecutorService executor, QueryPipelineConfig.LiveValues liveValues)
      Creates an instance of a QueryPipelineConfig record class.
      Parameters:
      perKeyBufferSize - the value for the perKeyBufferSize record component
      maxConcurrentKeys - the value for the maxConcurrentKeys record component
      backpressureTimeout - the value for the backpressureTimeout record component
      watermarkSilenceFallback - the value for the watermarkSilenceFallback record component
      catalog - the value for the catalog record component
      engineRouter - the value for the engineRouter record component
      executor - the value for the executor record component
      liveValues - the value for the liveValues record component
  • Method Details

    • defaults

      public static QueryPipelineConfig defaults(AggregateCatalogService catalog, QueryEngineRouter router)
    • withLiveValues

      public QueryPipelineConfig withLiveValues(QueryPipelineConfig.LiveValues liveValues)
      This configuration, reading live tag values through liveValues.
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • perKeyBufferSize

      public int perKeyBufferSize()
      Returns the value of the perKeyBufferSize record component.
      Returns:
      the value of the perKeyBufferSize record component
    • maxConcurrentKeys

      public int maxConcurrentKeys()
      Returns the value of the maxConcurrentKeys record component.
      Returns:
      the value of the maxConcurrentKeys record component
    • backpressureTimeout

      public Duration backpressureTimeout()
      Returns the value of the backpressureTimeout record component.
      Returns:
      the value of the backpressureTimeout record component
    • watermarkSilenceFallback

      public Duration watermarkSilenceFallback()
      Returns the value of the watermarkSilenceFallback record component.
      Returns:
      the value of the watermarkSilenceFallback record component
    • catalog

      public AggregateCatalogService catalog()
      Returns the value of the catalog record component.
      Returns:
      the value of the catalog record component
    • engineRouter

      public QueryEngineRouter engineRouter()
      Returns the value of the engineRouter record component.
      Returns:
      the value of the engineRouter record component
    • executor

      public ExecutorService executor()
      Returns the value of the executor record component.
      Returns:
      the value of the executor record component
    • liveValues

      public QueryPipelineConfig.LiveValues liveValues()
      Returns the value of the liveValues record component.
      Returns:
      the value of the liveValues record component