abstract class CommitRecovery extends AnyRef
CommitRecovery describes how to recover from exceptions raised while trying to commit
offsets. See CommitRecovery#Default for the default recovery strategy. If you do not wish to
recover from any exceptions, you can use CommitRecovery#None.
To create a new CommitRecovery, simply create a new instance and implement the recoverCommitWith function with the wanted recovery strategy. To use the CommitRecovery, you can simply set it with ConsumerSettings#withCommitRecovery.
- Source
- CommitRecovery.scala
- Alphabetic
- By Inheritance
- CommitRecovery
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new CommitRecovery()
Abstract Value Members
- abstract def recoverCommitWith[F[_]](offsets: Map[TopicPartition, OffsetAndMetadata], commit: F[Unit])(implicit F: Temporal[F], jitter: Jitter[F]): (Throwable) => F[Unit]
Describes recovery from offset commit exceptions.
Describes recovery from offset commit exceptions. The
commit
parameter can be used to retry the commit. Note that if more than one retry is desirable, errors fromcommit
will need to be handled and recovered.The offsets we are trying to commit are available via the
offsets
parameter. Waiting before retrying again can be done via the providedTimer
instance, and jitter can be applied using theJitter
instance.
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()