final case class DropOld(bufferSize: Int) extends Evicted[Nothing] with Product with Serializable
A OverflowStrategy specifying that on reaching the maximum size, the currently buffered events should start being dropped in a FIFO order, so the oldest events from the buffer will be dropped first.
- bufferSize
specifies how many events our buffer can hold before overflowing
- Source
- OverflowStrategy.scala
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- DropOld
- Product
- Equals
- Evicted
- Synchronous
- OverflowStrategy
- Serializable
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
Value Members
- val bufferSize: Int
- val isEvicted: Boolean
- Definition Classes
- Evicted → OverflowStrategy
- val isSynchronous: Boolean
- Definition Classes
- Synchronous → OverflowStrategy
- def productElementNames: Iterator[String]
- Definition Classes
- Product
This is the API documentation for the Monix library.
Package Overview
monix.execution exposes lower level primitives for dealing with asynchronous execution:
Atomic
types, as alternative tojava.util.concurrent.atomic
monix.catnap exposes pure abstractions built on top of the Cats-Effect type classes:
monix.eval is for dealing with evaluation of results, thus exposing Task and Coeval.
monix.reactive exposes the
Observable
pattern:Observable
implementationsmonix.tail exposes Iterant for purely functional pull based streaming:
Batch
andBatchCursor
, the alternatives to Scala'sIterable
andIterator
respectively that we are using within Iterant's encodingYou can control evaluation with type you choose - be it Task, Coeval, cats.effect.IO or your own as long as you provide correct cats-effect or cats typeclass instance.