Class BackoffPolicyFragment
java.lang.Object
io.aiven.commons.kafka.config.fragment.ConfigFragment
io.aiven.commons.kafka.config.fragment.BackoffPolicyFragment
- All Implemented Interfaces:
FragmentDataAccess
Defines the backoff policy for connectors.
-
Field Summary
Fields inherited from class io.aiven.commons.kafka.config.fragment.ConfigFragment
dataAccess -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the kafka retry backoff time.static intupdate(org.apache.kafka.common.config.ConfigDef configDef) Adds configuration options to the configuration definition.Methods inherited from class io.aiven.commons.kafka.config.fragment.ConfigFragment
getBoolean, getConfiguredInstance, getInt, getList, getLong, getPassword, getString, has, logDeprecated, logDeprecated, logDeprecated, registerIssue, validate, validate, validationMessage, values
-
Constructor Details
-
BackoffPolicyFragment
Constructor.- Parameters:
dataAccess- The data to access.
-
-
Method Details
-
update
public static int update(org.apache.kafka.common.config.ConfigDef configDef) Adds configuration options to the configuration definition.- Parameters:
configDef- the configuration definition ot update.- Returns:
- the number of items in the backoff policy group.
-
getKafkaRetryBackoffMs
Gets the kafka retry backoff time.- Returns:
- the Kafka retry backoff time in MS.
-