Jitter

fs2.kafka.Jitter
See theJitter companion object
sealed abstract class Jitter[F[_]]

Jitter represents the ability to apply jitter to an existing value n, effectively multiplying n with a pseudorandom value between 0 and 1 (both inclusive, although implementation dependent).

The default Jitter#default uses java.util.Random for pseudorandom values and always applies jitter with a value between 0 (inclusive) and 1 (exclusive)
.
If no jitter is desired, use Jitter#none.

Attributes

Companion
object
Source
Jitter.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

def withJitter(n: Double): F[Double]

Attributes

Source
Jitter.scala