Class BackoffPolicyFragment

java.lang.Object
io.aiven.commons.kafka.config.fragment.ConfigFragment
io.aiven.commons.kafka.config.fragment.BackoffPolicyFragment
All Implemented Interfaces:
FragmentDataAccess

public final class BackoffPolicyFragment extends ConfigFragment
Defines the backoff policy for connectors.
  • Constructor Details

    • BackoffPolicyFragment

      public BackoffPolicyFragment(FragmentDataAccess dataAccess)
      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

      public Long getKafkaRetryBackoffMs()
      Gets the kafka retry backoff time.
      Returns:
      the Kafka retry backoff time in MS.