Interface ConnectorInputHandler<T>
-
- Type Parameters:
T- the data type to handle, may beIor an asynchronously delivered type
public interface ConnectorInputHandler<T>Code fragment to handle input.Connectorintentionally does not declare methods for the input handler as this interface shall be utilized in generated connector code.- Author:
- Holger Eichelberger, SSE
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default java.lang.StringgetNewConnectorClass(T data)Called to query for a runtime change of the connector class on the given data.voidreceived(T data, EventHandlingConnector connector)Called to inform that data to be handled has been received.
-
-
-
Method Detail
-
received
void received(T data, EventHandlingConnector connector)
Called to inform that data to be handled has been received. CallingEventHandlingConnector.trigger()orEventHandlingConnector.trigger(ConnectorTriggerQuery)to asynchronously ingest a next data item by theconnector.- Parameters:
data- the dataconnector- the connector
-
getNewConnectorClass
default java.lang.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
-
-