Class KNetConnectSink
- Namespace
- MASES.KNet.Template.KNetConnect
- Assembly
- knetConnectSink.dll
public class KNetConnectSink : KNetSinkConnector<KNetConnectSink, KNetConnectSinkTask>, IKNetSinkConnector, IKNetConnector, IKNetCommon, IKNetConnectLogging, IConnector, IVersion
- Inheritance
-
KNetConnectSink
- Implements
- Inherited Members
Methods
Start(IKNetConfigurationFromMap)
Implement the method to execute the start action
public override void Start(IKNetConfigurationFromMap props)
Parameters
Stop()
Implement the method to execute the stop action
public override void Stop()
TaskConfigs(int, int, IKNetTaskConfiguration)
Invoked during allocation of tasks from Apache Kafka Connect
public override bool TaskConfigs(int index, int maxTasks, IKNetTaskConfiguration config)
Parameters
indexintmaxTasksintMax tasks as defined from Apache Kafka Connect framework
configIKNetTaskConfigurationThe IKNetTaskConfiguration to be filled in with properties for the task: the same will be received from Start(IKNetConfigurationFromMap)
Returns
Remarks
If the connector needs a single task and maxTasks is higher than 1, returning true immediately only one configuration is returned to Apache Kafka Connect framework.
In other word it is possible to stop the configuration requests at any time; only the first one is reported in any case since at least one shall be available.
To configure all maxTasks return always false.