DeltaBufferPolicy

scalus.cardano.node.stream.DeltaBufferPolicy
See theDeltaBufferPolicy companion object

Overflow behaviour for a delta buffer.

There is no backpressure to be had here, and that is a property of the source rather than of this implementation: a chain produces blocks whether or not anyone is keeping up, so the only decisions available are how much to hold and what to do when that is not enough.

Chain-sourced events must never be dropped silently — a missed Spent corrupts the subscriber's view of state permanently, and it has no way to notice. So the two options are "never drop" and "fail loudly":

Deliberately not offered: a bounded buffer that drops. It would turn the corruption this policy exists to prevent into the default behaviour, and the subscriber could not detect it.

Attributes

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

Members list

Type members

Enum entries

final case class Bounded(size: Int)