ClearBufferAndSignal

final case class ClearBufferAndSignal[A](bufferSize: Int, onOverflow: Long => Coeval[Option[A]]) extends Evicted[A]

A OverflowStrategy specifying that on reaching the maximum size, the current buffer should be dropped completely to make room for new events.

The given onOverflow function get be used for logging the event and for sending a message to the downstream consumers to inform them of dropped messages. The function can return None in which case no message is sent and thus you can use it just to log a warning.

Value parameters:
bufferSize

specifies how many events our buffer can hold before overflowing

onOverflow

is a function that can get called on overflow with a number of messages that were dropped, a function that builds a new message that will be sent to downstream.

trait Product
trait Equals
class Evicted[A]
class Synchronous[A]
trait Serializable
class Object
trait Matchable
class Any

Value members

Inherited methods

Inherited from:
Product

Inherited fields

override val isEvicted: Boolean
Inherited from:
Evicted
override val isSynchronous: Boolean
Inherited from:
Synchronous