title: Max retry attempts and back off interval not changing
body: <p>I am trying to retry consumer on exception in my code.
  my consumer looks like below</p>
  <pre><code>    @Bean
      public Consumer&lt;Message&lt;String&gt;&gt; input(){
         return -&gt; {
             String output = service.getValues();
         };
      }
  </code></pre>
  <p>below are the ways i have tried out.</p>
  <p>1.</p>
  <pre><code>@Bean
  public Consumer&lt;Message&lt;String&gt;&gt; input(){
     return -&gt; {
        RetryTemplate retryTemplate = new RetryTemplate();
        RetryPolicy retryPolicy = new SimpleRetryPolicy(2);
        FixedBackOffPolicy backOffPolicy = new FixedBackOffPolicy();
        backOffPolicy.setBackOffPeriod(600000);
      
        retryTemplate.setBackOffPolicy(backOffPolicy);
        retryTemplate.setRetryPolicy(retryPolicy);
      
        retryTemplate.execute(context -&gt; {
          try {
            String output = service.getValues();
          }
          catch (Exception e) {
            throw new IllegalStateException(..);
         }
        });
      };
  }
  </code></pre>
  <p>2</p>
  <pre><code>@StreamRetryTemplate
  public RetryTemplate myRetryTemplate() {
     return new RetryTemplate();
  }
  </code></pre>
  <ol start="3">
  <li>instead of RetryTemplate setting maxRetry and backOff values in consumer properties like below</li>
  </ol>
  <pre><code>spring.cloud.stream.bindings.input-in-0.consumer.maxAttempts=2
  spring.cloud.stream.bindings.input-in-0.consumer.backOffInitialInterval=600000
  spring.cloud.stream.bindings.input-in-0.consumer.backOffMaxInterval=600000
  spring.cloud.stream.bindings.input-in-0.consumer.backoffMultiplier=1.0
  spring.cloud.stream.bindings.input-in-0.consumer.defaultRetryable=false
  </code></pre>
  <p>Nothing working, seems its retrying with default retry only. For my surprise its doing retry more than 10 times. May be I may missing some basic initial setup things please help whats I am doing wrong</p>
  <p>below are my consumer properties in console on startup</p>
  <pre><code>[pool-8-thread-2] INFO  o.a.k.c.consumer.ConsumerConfig - ConsumerConfig values: 
      allow.auto.create.topics = true
      auto.commit.interval.ms = 5000
      auto.offset.reset = latest
      bootstrap.servers = [server.domian:9092]
      check.crcs = true
      client.dns.lookup = use_all_dns_ips
      client.id = consumer-fsf-gateway-5
      client.rack = 
      connections.max.idle.ms = 540000
      default.api.timeout.ms = 60000
      enable.auto.commit = true
      exclude.internal.topics = true
      fetch.max.bytes = 52428800
      fetch.max.wait.ms = 500
      fetch.min.bytes = 1
      group.id = group_id_val
      group.instance.id = null
      heartbeat.interval.ms = 3000
      interceptor.classes = []
      internal.leave.group.on.close = true
      internal.throw.on.fetch.stable.offset.unsupported = false
      isolation.level = read_uncommitted
      key.deserializer = class org.apache.kafka.common.serialization.ByteArrayDeserializer
      max.partition.fetch.bytes = 1048576
      max.poll.interval.ms = 300000
      max.poll.records = 500
      metadata.max.age.ms = 300000
      metric.reporters = []
      metrics.num.samples = 2
      metrics.recording.level = INFO
      metrics.sample.window.ms = 30000
      partition.assignment.strategy = [class org.apache.kafka.clients.consumer.RangeAssignor]
      receive.buffer.bytes = 65536
      reconnect.backoff.max.ms = 1000
      reconnect.backoff.ms = 50
      request.timeout.ms = 30000
      retry.backoff.ms = 100
      sasl.client.callback.handler.class = null
      sasl.jaas.config = null
      sasl.kerberos.kinit.cmd = /usr/bin/kinit
      sasl.kerberos.min.time.before.relogin = 60000
      sasl.kerberos.service.name = kafka
      sasl.kerberos.ticket.renew.jitter = 0.05
      sasl.kerberos.ticket.renew.window.factor = 0.8
      sasl.login.callback.handler.class = null
      sasl.login.class = null
      sasl.login.refresh.buffer.seconds = 300
      sasl.login.refresh.min.period.seconds = 60
      sasl.login.refresh.window.factor = 0.8
      sasl.login.refresh.window.jitter = 0.05
      sasl.mechanism = GSSAPI
      security.protocol = SASL_SSL
      security.providers = null
      send.buffer.bytes = 131072
      session.timeout.ms = 10000
      ssl.cipher.suites = null
      ssl.enabled.protocols = [TLSv1.2, TLSv1.3]
      ssl.endpoint.identification.algorithm = https
      ssl.engine.factory.class = null
      ssl.key.password = null
      ssl.keymanager.algorithm = SunX509
      ssl.keystore.location = null
      ssl.keystore.password = null
      ssl.keystore.type = JKS
      ssl.protocol = TLSv1.3
      ssl.provider = null
      ssl.secure.random.implementation = null
      ssl.trustmanager.algorithm = PKIX
      ssl.truststore.location = null
      ssl.truststore.password = null
      ssl.truststore.type = JKS
      value.deserializer = class org.apache.kafka.common.serialization.ByteArrayDeserializer
  </code></pre>