Interface ResultPublisher<K>

All Known Subinterfaces:
AnnotationPublisher, MetadataPublisher, ValuePublisher
All Known Implementing Classes:
DefaultAnnotationPublisher, DefaultMetadataPublisher, HistorianQueryExecutor

public interface ResultPublisher<K>
  • Method Details

    • getIdentifier

      String getIdentifier()
      Returns an identifier for this publisher.
      Returns:
      A String identifying this publisher instance
    • getState

      Returns the current state of the publisher.
      Returns:
      The current PublisherState
    • initializeWithFailure

      void initializeWithFailure(K key, QualityCode qualityCode)
      Initializes the publisher with a key and a quality code.
      Parameters:
      key - The key to initialize with
      qualityCode - The quality code to initialize with
    • cancel

      void cancel()
      Cancels the publishing process. Must be called if the publishing process is canceled before completion.
    • finish

      void finish()
      Completes the publishing process. Must be called after everything's been published.
    • finishWithError

      void finishWithError(Exception e)
      Completes the publishing process with an error. Must be called if an error occurs during the publishing process.
      Parameters:
      e - The exception that caused the error.