ReplaySubject

Companion:
class
class Object
trait Matchable
class Any

Value members

Concrete methods

def apply[A](initial: A*): ReplaySubject[A]

Creates an unbounded replay subject.

Creates an unbounded replay subject.

def create[A](initial: Seq[A]): ReplaySubject[A]

Creates an unbounded replay subject.

Creates an unbounded replay subject.

def createLimited[A](capacity: Int): ReplaySubject[A]

Creates a size-bounded replay subject.

Creates a size-bounded replay subject.

In this setting, the ReplaySubject holds at most size items in its internal buffer and discards the oldest item.

Value parameters:
capacity

is the maximum size of the internal buffer

def createLimited[A](capacity: Int, initial: Seq[A]): ReplaySubject[A]

Creates a size-bounded replay subject, prepopulated.

Creates a size-bounded replay subject, prepopulated.

In this setting, the ReplaySubject holds at most size items in its internal buffer and discards the oldest item.

Value parameters:
capacity

is the maximum size of the internal buffer

initial

is an initial sequence of elements to prepopulate the buffer