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 class
The 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 typeGets the errors tolerance.int
Gets the maximum number of records to poll at one time.int
Gets the ring buffer size.Gets the target topic.static SourceConfigFragment.Setter
Gets a setter for this fragment.static org.apache.kafka.common.config.ConfigDef
update
(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:
-
-
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
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.
-