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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceReads the current value of the live tag behind each historized path, which the pipeline offers as a query's post bound when no stored sample follows the range. -
Constructor Summary
ConstructorsConstructorDescriptionQueryPipelineConfig(int perKeyBufferSize, int maxConcurrentKeys, Duration backpressureTimeout, Duration watermarkSilenceFallback, AggregateCatalogService catalog, QueryEngineRouter engineRouter, ExecutorService executor) A configuration that never reads a live tag value.QueryPipelineConfig(int perKeyBufferSize, int maxConcurrentKeys, Duration backpressureTimeout, Duration watermarkSilenceFallback, AggregateCatalogService catalog, QueryEngineRouter engineRouter, ExecutorService executor, QueryPipelineConfig.LiveValues liveValues) Creates an instance of aQueryPipelineConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebackpressureTimeoutrecord component.catalog()Returns the value of thecatalogrecord component.static QueryPipelineConfigdefaults(AggregateCatalogService catalog, QueryEngineRouter router) Returns the value of theengineRouterrecord component.final booleanIndicates whether some other object is "equal to" this one.executor()Returns the value of theexecutorrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theliveValuesrecord component.intReturns the value of themaxConcurrentKeysrecord component.intReturns the value of theperKeyBufferSizerecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thewatermarkSilenceFallbackrecord component.withLiveValues(QueryPipelineConfig.LiveValues liveValues) This configuration, reading live tag values throughliveValues.
-
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 aQueryPipelineConfigrecord class.- Parameters:
perKeyBufferSize- the value for theperKeyBufferSizerecord componentmaxConcurrentKeys- the value for themaxConcurrentKeysrecord componentbackpressureTimeout- the value for thebackpressureTimeoutrecord componentwatermarkSilenceFallback- the value for thewatermarkSilenceFallbackrecord componentcatalog- the value for thecatalogrecord componentengineRouter- the value for theengineRouterrecord componentexecutor- the value for theexecutorrecord componentliveValues- the value for theliveValuesrecord component
-
-
Method Details
-
defaults
public static QueryPipelineConfig defaults(AggregateCatalogService catalog, QueryEngineRouter router) -
withLiveValues
This configuration, reading live tag values throughliveValues. -
toString
-
hashCode
-
equals
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 withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
perKeyBufferSize
public int perKeyBufferSize()Returns the value of theperKeyBufferSizerecord component.- Returns:
- the value of the
perKeyBufferSizerecord component
-
maxConcurrentKeys
public int maxConcurrentKeys()Returns the value of themaxConcurrentKeysrecord component.- Returns:
- the value of the
maxConcurrentKeysrecord component
-
backpressureTimeout
Returns the value of thebackpressureTimeoutrecord component.- Returns:
- the value of the
backpressureTimeoutrecord component
-
watermarkSilenceFallback
Returns the value of thewatermarkSilenceFallbackrecord component.- Returns:
- the value of the
watermarkSilenceFallbackrecord component
-
catalog
Returns the value of thecatalogrecord component.- Returns:
- the value of the
catalogrecord component
-
engineRouter
Returns the value of theengineRouterrecord component.- Returns:
- the value of the
engineRouterrecord component
-
executor
Returns the value of theexecutorrecord component.- Returns:
- the value of the
executorrecord component
-
liveValues
Returns the value of theliveValuesrecord component.- Returns:
- the value of the
liveValuesrecord component
-