Table of Contents

Class KNetSinkTask<TTask>

Namespace
MASES.KNet.Connect
Assembly
MASES.KNet.dll

An implementation of KNetTask<TTask> for sink task

public abstract class KNetSinkTask<TTask> : KNetTask<TTask>, IKNetSinkTask, IKNetTask, ITask, IKNetCommon, IKNetConnectLogging where TTask : KNetSinkTask<TTask>

Type Parameters

TTask

The class which extends KNetSinkTask<TTask>

Inheritance
KNetTask<TTask>
KNetSinkTask<TTask>
Implements
Derived
Inherited Members

Properties

Context

public SinkTaskContext Context { get; }

Property Value

SinkTaskContext

ReflectedTaskClassName

Set the ReflectedTaskClassName of the connector to a fixed value

protected override string ReflectedTaskClassName { get; }

Property Value

string

ThreadPriority

The ThreadPriority to be used when UseThread is true

protected virtual ThreadPriority ThreadPriority { get; set; }

Property Value

ThreadPriority

UsePrefetch

protected virtual bool UsePrefetch { get; set; }

Property Value

bool

UseThread

protected virtual bool UseThread { get; set; }

Property Value

bool

Methods

Put(IEnumerable<SinkRecord>)

Implement the method to execute the Put action

public abstract void Put(IEnumerable<SinkRecord> collection)

Parameters

collection IEnumerable<SinkRecord>

The set of SinkRecord from Apache Kafka Connect framework