TestPublisher

org.apache.pekko.stream.testkit.TestPublisher
object TestPublisher

Provides factory methods for various Publishers.

Attributes

Source
StreamTestKit.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Type members

Classlikes

final case class CancelSubscription(subscription: Subscription, cause: Throwable) extends PublisherEvent

Attributes

Source
StreamTestKit.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
class ManualProbe[I] extends Publisher[I]

Implementation of org.reactivestreams.Publisher that allows various assertions. This probe does not track demand. Therefore you need to expect demand before sending elements downstream.

Implementation of org.reactivestreams.Publisher that allows various assertions. This probe does not track demand. Therefore you need to expect demand before sending elements downstream.

Attributes

Companion
object
Source
StreamTestKit.scala
Supertypes
trait Publisher[I]
class Object
trait Matchable
class Any
Known subtypes
class Probe[T]
object ManualProbe

Attributes

Companion
class
Source
StreamTestKit.scala
Supertypes
class Object
trait Matchable
class Any
Self type
class Probe[T] extends ManualProbe[T]

Single subscription and demand tracking for TestPublisher.ManualProbe.

Single subscription and demand tracking for TestPublisher.ManualProbe.

Attributes

Companion
object
Source
StreamTestKit.scala
Supertypes
class ManualProbe[T]
trait Publisher[T]
class Object
trait Matchable
class Any
object Probe

Attributes

Companion
class
Source
StreamTestKit.scala
Supertypes
class Object
trait Matchable
class Any
Self type
Probe.type

Attributes

Source
StreamTestKit.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
final case class RequestMore(subscription: Subscription, elements: Long) extends PublisherEvent

Attributes

Source
StreamTestKit.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
final case class Subscribe(subscription: Subscription) extends PublisherEvent

Attributes

Source
StreamTestKit.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Attributes

Source
StreamTestKit.scala
Supertypes
class Object
trait Matchable
class Any
Self type

Value members

Concrete methods

def empty[T](): Publisher[T]

Publisher that signals complete to subscribers, after handing a void subscription.

Publisher that signals complete to subscribers, after handing a void subscription.

Attributes

Source
StreamTestKit.scala
def error[T](cause: Throwable): Publisher[T]

Publisher that signals error to subscribers immediately after handing out subscription.

Publisher that signals error to subscribers immediately after handing out subscription.

Attributes

Source
StreamTestKit.scala
def lazyEmpty[T]: Publisher[T]

Publisher that subscribes the subscriber and completes after the first request.

Publisher that subscribes the subscriber and completes after the first request.

Attributes

Source
StreamTestKit.scala
def lazyError[T](cause: Throwable): Publisher[T]

Publisher that subscribes the subscriber and signals error after the first request.

Publisher that subscribes the subscriber and signals error after the first request.

Attributes

Source
StreamTestKit.scala
def manualProbe[T](autoOnSubscribe: Boolean)(implicit system: ActorSystem): ManualProbe[T]

Probe that implements org.reactivestreams.Publisher interface.

Probe that implements org.reactivestreams.Publisher interface.

Attributes

Source
StreamTestKit.scala
def probe[T](initialPendingRequests: Long)(implicit system: ActorSystem): Probe[T]

Probe that implements org.reactivestreams.Publisher interface and tracks demand.

Probe that implements org.reactivestreams.Publisher interface and tracks demand.

Attributes

Source
StreamTestKit.scala