Interface ConnectorContext
- All Known Subinterfaces:
- SinkConnectorContext,- SourceConnectorContext
public interface ConnectorContext
ConnectorContext allows Connectors to proactively interact with the Kafka Connect runtime.
- 
Method SummaryModifier and Type Method Description voidraiseError(Exception e)Raise an unrecoverable exception to the Connect framework.voidrequestTaskReconfiguration()Requests that the runtime reconfigure the Tasks for this source.
- 
Method Details- 
requestTaskReconfigurationvoid requestTaskReconfiguration()Requests that the runtime reconfigure the Tasks for this source. This should be used to indicate to the runtime that something about the input/output has changed (e.g. partitions added/removed) and the running Tasks will need to be modified.
- 
raiseErrorRaise an unrecoverable exception to the Connect framework. This will cause the status of the connector to transition to FAILED.- Parameters:
- e- Exception to be raised.
 
 
-