Interface ConnectorInputHandler<T>

Type Parameters:
T - the data type to handle, may be I or an asynchronously delivered type

public interface ConnectorInputHandler<T>
Code fragment to handle input. Connector intentionally does not declare methods for the input handler as this interface shall be utilized in generated connector code.
Author:
Holger Eichelberger, SSE
  • Method Summary

    Modifier and Type
    Method
    Description
    default String
    Called to query for a runtime change of the connector class on the given data.
    void
    received(T data, EventHandlingConnector connector)
    Called to inform that data to be handled has been received.
  • Method Details

    • received

      void received(T data, EventHandlingConnector connector)
      Called to inform that data to be handled has been received. Calling EventHandlingConnector.trigger() or EventHandlingConnector.trigger(ConnectorTriggerQuery) to asynchronously ingest a next data item by the connector.
      Parameters:
      data - the data
      connector - the connector
    • getNewConnectorClass

      default String getNewConnectorClass(T data)
      Called to query for a runtime change of the connector class on the given data.
      Parameters:
      data - the data
      Returns:
      the class name of the compatible new connector class, may be null (default) or empty for none