Class SourceConfigFragment.Setter
java.lang.Object
io.aiven.commons.kafka.config.fragment.AbstractFragmentSetter<SourceConfigFragment.Setter>
io.aiven.commons.kafka.connector.source.config.SourceConfigFragment.Setter
- Enclosing class:
SourceConfigFragment
public static class SourceConfigFragment.Setter
extends io.aiven.commons.kafka.config.fragment.AbstractFragmentSetter<SourceConfigFragment.Setter>
The SourceConfigFragment setter.
-
Field Summary
Fields inherited from class io.aiven.commons.kafka.config.fragment.AbstractFragmentSetter
self -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncsvExtractorHeaders(String headers) Sets the headers for the CSV.csvExtractorHeadersEnabled(boolean state) Sets the header flag for the CSV extractor.distributionType(DistributionType distributionType) Sets the distribution type.errorsTolerance(org.apache.kafka.connect.runtime.errors.ToleranceType tolerance) Sets the error tolerance.extractorBuffer(int bufferSize) Sets the extractor buffer size.extractorCache(int cacheSize) Sets the cache size in bytes.extractorClass(Class<? extends Extractor> extractor) Sets the extractor class for this source.maxPollRecords(int maxPollRecords) Set the maximum poll records.nativeStartKey(String nativeStartKey) Sets the initial native key to start from.ringBufferSize(int ringBufferSize) Sets the ring buffer size.targetTopic(String targetTopic) Sets the target topic.Methods inherited from class io.aiven.commons.kafka.config.fragment.AbstractFragmentSetter
data, setValue, setValue, setValue, setValue, setValue, setValue
-
Constructor Details
-
Setter
Constructor.- Parameters:
data- the data to modify.
-
-
Method Details
-
maxPollRecords
Set the maximum poll records.- Parameters:
maxPollRecords- the maximum number of records to poll.- Returns:
- this
-
errorsTolerance
public SourceConfigFragment.Setter errorsTolerance(org.apache.kafka.connect.runtime.errors.ToleranceType tolerance) Sets the error tolerance.- Parameters:
tolerance- the error tolerance- Returns:
- this.
-
targetTopic
Sets the target topic.- Parameters:
targetTopic- the target topic.- Returns:
- this.
-
distributionType
Sets the distribution type.- Parameters:
distributionType- the distribution type.- Returns:
- this
-
ringBufferSize
Sets the ring buffer size.- Parameters:
ringBufferSize- the ring buffer size- Returns:
- this.
-
nativeStartKey
Sets the initial native key to start from.- Parameters:
nativeStartKey- the key to start reading new messages from.- Returns:
- this.
-
extractorClass
Sets the extractor class for this source.- Parameters:
extractor- the class of the Extractor for this source.- Returns:
- the extractor for this source.
-
extractorBuffer
Sets the extractor buffer size.- Parameters:
bufferSize- the buffer size in bytes.- Returns:
- this.
-
extractorCache
Sets the cache size in bytes.- Parameters:
cacheSize- the cache size in bytes.- Returns:
- this
-
csvExtractorHeadersEnabled
Sets the header flag for the CSV extractor.- Parameters:
state- the state for the header flag.- Returns:
- this
-
csvExtractorHeaders
Sets the headers for the CSV. Should be a comma separated list of field names.- Parameters:
headers- the header names.- Returns:
- this
-