Class KNetConnectSourceTask
- Namespace
- MASES.KNet.Template.KNetConnect
- Assembly
- knetConnectSource.dll
public class KNetConnectSourceTask : KNetSourceTask<KNetConnectSourceTask>, IKNetSourceTask, IKNetTask, ITask, IKNetCommon, IKNetConnectLogging
- Inheritance
-
KNetConnectSourceTask
- Implements
- Inherited Members
Methods
Poll()
Implement the method to execute the Poll action
public override IEnumerable<SourceRecord> Poll()
Returns
- IEnumerable<SourceRecord>
The set of SourceRecord to return to Apache Kafka Connect framework or null if SourceRecord are accumulated using CreateAndPushRecord methods
Remarks
The method shall be implemented, however if UseOnlyAsync is set to true the JVM side never invokes Poll()
Start(IKNetConfigurationFromMap)
Implement the method to execute the start action
public override void Start(IKNetConfigurationFromMap props)
Parameters
propsIKNetConfigurationFromMapThe IKNetConfigurationFromMap to access the properties returned from Apache Kafka Connect framework: the Properties contains the info from TaskConfigs(int, int, IKNetTaskConfiguration).
Stop()
Implement the method to execute the stop action
public override void Stop()