Class SourceConfigFragment
java.lang.Object
io.aiven.kafka.connect.common.config.ConfigFragment
io.aiven.kafka.connect.common.config.SourceConfigFragment
Defines properties that are shared across all Source implementations.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classThe SourceConfigFragment setter. -
Field Summary
FieldsFields inherited from class io.aiven.kafka.connect.common.config.ConfigFragment
cfg -
Constructor Summary
ConstructorsConstructorDescriptionSourceConfigFragment(org.apache.kafka.common.config.AbstractConfig cfg) Construct the ConfigFragment. -
Method Summary
Modifier and TypeMethodDescriptionGets the distribution typeorg.apache.kafka.connect.runtime.errors.ToleranceTypeGets the errors tolerance.intGets the maximum number of records to poll at one time.Gets the nativeStartKey.intGets the ring buffer size.Gets the target topic.static SourceConfigFragment.SetterGets a setter for this fragment.static org.apache.kafka.common.config.ConfigDefupdate(org.apache.kafka.common.config.ConfigDef configDef) Methods inherited from class io.aiven.kafka.connect.common.config.ConfigFragment
has, logDeprecated, logDeprecated, logDeprecated, validate
-
Field Details
-
TARGET_TOPIC
- See Also:
-
RING_BUFFER_SIZE
- See Also:
-
NATIVE_START_KEY
- See Also:
-
-
Constructor Details
-
SourceConfigFragment
public SourceConfigFragment(org.apache.kafka.common.config.AbstractConfig cfg) Construct the ConfigFragment.- Parameters:
cfg- the configuration that this fragment is associated with.
-
-
Method Details
-
setter
Gets a setter for this fragment.- Parameters:
data- the data map to modify.- Returns:
- the Setter.
-
update
public static org.apache.kafka.common.config.ConfigDef update(org.apache.kafka.common.config.ConfigDef configDef) -
getTargetTopic
Gets the target topic.- Returns:
- the target topic.
-
getMaxPollRecords
public int getMaxPollRecords()Gets the maximum number of records to poll at one time.- Returns:
- The maximum number of records to poll at one time.
-
getErrorsTolerance
public org.apache.kafka.connect.runtime.errors.ToleranceType getErrorsTolerance()Gets the errors tolerance.- Returns:
- the errors tolerance.
-
getDistributionType
Gets the distribution type- Returns:
- the distribution type.
-
getRingBufferSize
public int getRingBufferSize()Gets the ring buffer size.- Returns:
- the ring buffer size.
-
getNativeStartKey
Gets the nativeStartKey.- Returns:
- the key to start consuming records from.
-