Snapshot

com.worxbend.cobalt.ConsumerSupervisor.Snapshot
See theSnapshot companion object
final case class Snapshot(state: RunState, since: Instant, generation: Int, restarts: Int, lastError: Option[String], handle: Option[ConsumerHandle])

The supervisor's whole mutable state, as one immutable value behind one reference.

One AtomicReference to a case class rather than five references: a reader of ConsumerSupervisor.status gets a consistent view, where five separate atomics would let it observe state = running alongside the previous generation's error.

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

def productElementNames: Iterator[String]

An iterator over the names of all the elements of this product.

An iterator over the names of all the elements of this product.

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

An iterator over all the elements of this product.

An iterator over all the elements of this product.

Attributes

Returns

in the default implementation, an Iterator[Any]

Inherited from:
Product