Table of Contents

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(IReadOnlyDictionary<string, string>)

Implement the method to execute the start action

public override void Start(IReadOnlyDictionary<string, string> props)

Parameters

props IReadOnlyDictionary<string, string>

The set of properties returned from Apache Kafka Connect framework: the IReadOnlyDictionary<TKey, TValue> contains the info from KNetConnector.TaskConfigs(int, IDictionary<string, string>).

Stop()

Implement the method to execute the stop action

public override void Stop()