MulticastStrategy

The MulticastStrategy enumerated.

Companion:
class
trait Sum
trait Mirror
class Object
trait Matchable
class Any

Type members

Classlikes

case object Async extends MulticastStrategy[Nothing]

The Async strategy is for building multicast observables that emit the last value (and only the last value) of the source and only after the source completes.

The Async strategy is for building multicast observables that emit the last value (and only the last value) of the source and only after the source completes.

   Corresponds to [[Pipe.async]].
case class Behavior[A](initial: A) extends MulticastStrategy[A]

The Behavior strategy is for building multicast observables that emit the most recently emitted item by the source before the source starts being mirrored.

The Behavior strategy is for building multicast observables that emit the most recently emitted item by the source before the source starts being mirrored.

   Corresponds to [[Pipe.behavior]].
case object Publish extends MulticastStrategy[Nothing]

The Publish strategy is for emitting to a subscriber only those items that are emitted by the source subsequent to the time of the subscription.

The Publish strategy is for emitting to a subscriber only those items that are emitted by the source subsequent to the time of the subscription.

   Corresponds to [[Pipe.publish]].
case class Replay[A](initial: Seq[A]) extends MulticastStrategy[A]

The Replay strategy is for building multicast observables that repeat all the generated items by the source, regardless of when the source is subscribed.

The Replay strategy is for building multicast observables that repeat all the generated items by the source, regardless of when the source is subscribed.

   Corresponds to [[Pipe.replay[A](initial:Seq[A]* Pipe.replay]].
case class ReplayLimited[A](capacity: Int, initial: Seq[A]) extends MulticastStrategy[A]

The ReplayLimited strategy is for building multicast observables that repeat the generated items by the source, but limited by the maximum size of the underlying buffer.

The ReplayLimited strategy is for building multicast observables that repeat the generated items by the source, but limited by the maximum size of the underlying buffer.

   When maximum size is reached, the underlying buffer starts dropping
   older events. Note that the size of the resulting buffer is not necessarily
   the given capacity, as the implementation may choose to increase it for optimisation
   purposes.

   Corresponds to [[Pipe.replayLimited[A](capacity:Int,initial* Pipe.replayLimited]].

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Inherited from:
Mirror

The name of the type

The name of the type

Inherited from:
Mirror

Value members

Concrete methods

The Async strategy is for building multicast observables that emit the last value (and only the last value) of the source and only after the source completes.

The Async strategy is for building multicast observables that emit the last value (and only the last value) of the source and only after the source completes.

   Corresponds to [[Pipe.async]].
def behavior[A](initial: A): MulticastStrategy[A]

The Behavior strategy is for building multicast observables that emit the most recently emitted item by the source before the source starts being mirrored.

The Behavior strategy is for building multicast observables that emit the most recently emitted item by the source before the source starts being mirrored.

   Corresponds to [[Pipe.behavior]].

The Publish strategy is for emitting to a subscriber only those items that are emitted by the source subsequent to the time of the subscription.

The Publish strategy is for emitting to a subscriber only those items that are emitted by the source subsequent to the time of the subscription.

   Corresponds to [[Pipe.publish]].

The Replay strategy is for building multicast observables that repeat all the generated items by the source, regardless of when the source is subscribed.

The Replay strategy is for building multicast observables that repeat all the generated items by the source, regardless of when the source is subscribed.

   Corresponds to [[Pipe.replay[A](initial:Seq[A]* Pipe.replay]].
def replay[A](initial: Seq[A]): MulticastStrategy[A]

The Replay strategy is for building multicast observables that repeat all the generated items by the source, regardless of when the source is subscribed.

The Replay strategy is for building multicast observables that repeat all the generated items by the source, regardless of when the source is subscribed.

   Corresponds to [[Pipe.replay[A](initial:Seq[A]* Pipe.replay]].
def replayLimited[A](capacity: Int): MulticastStrategy[A]

The ReplayLimited strategy is for building multicast observables that repeat the generated items by the source, but limited by the maximum size of the underlying buffer.

The ReplayLimited strategy is for building multicast observables that repeat the generated items by the source, but limited by the maximum size of the underlying buffer.

   When maximum size is reached, the underlying buffer starts dropping
   older events. Note that the size of the resulting buffer is not necessarily
   the given capacity, as the implementation may choose to increase it for optimisation
   purposes.

   Corresponds to [[Pipe.replayLimited[A](capacity:Int,initial* Pipe.replayLimited]].
def replayLimited[A](capacity: Int, initial: Seq[A]): MulticastStrategy[A]

The ReplayLimited strategy is for building multicast observables that repeat the generated items by the source, but limited by the maximum size of the underlying buffer.

The ReplayLimited strategy is for building multicast observables that repeat the generated items by the source, but limited by the maximum size of the underlying buffer.

   When maximum size is reached, the underlying buffer starts dropping
   older events. Note that the size of the resulting buffer is not necessarily
   the given capacity, as the implementation may choose to increase it for optimisation
   purposes.

   Corresponds to [[Pipe.replayLimited[A](capacity:Int,initial* Pipe.replayLimited]].