Interface ValuePublisher
- All Superinterfaces:
ResultPublisher<ResultNodeDefinition>
- All Known Implementing Classes:
HistorianQueryExecutor
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.inductiveautomation.historian.gateway.api.query.ResultPublisher
ResultPublisher.PublisherState
-
Method Summary
Modifier and TypeMethodDescriptionvoid
initialize
(ResultNodeDefinition definition, DataType dataType) Initializes the publisher with the expected data type.void
publish
(ResultNodeDefinition definition, QualifiedValue value) Publishes a value for the given query definition.Methods inherited from interface com.inductiveautomation.historian.gateway.api.query.ResultPublisher
cancel, finish, finishWithError, getIdentifier, getState, initializeWithFailure
-
Method Details
-
initialize
Initializes the publisher with the expected data type. This method must be called before any publishing operations.- Parameters:
definition
- The query definitiondataType
- The class representing the type of data to be published- Throws:
IllegalStateException
- if the publisher is not in UNINITIALIZED state
-
publish
Publishes a value for the given query definition.- Parameters:
definition
- The query definitionvalue
- The value to publish- Throws:
IllegalStateException
- if the publisher is not in PUBLISHING state
-