Package org.apache.pekko.stream.testkit
Class TestPublisher.Probe<T>
java.lang.Object
org.apache.pekko.stream.testkit.TestPublisher.ManualProbe<T>
org.apache.pekko.stream.testkit.TestPublisher.Probe<T>
- All Implemented Interfaces:
org.reactivestreams.Publisher<T>
- Enclosing class:
- TestPublisher
Single subscription and demand tracking for
TestPublisher.ManualProbe.-
Method Summary
Modifier and TypeMethodDescriptionvoidAsserts that a subscription has been received or will be received<E extends Throwable>
EexpectCancellationWithCause(Class<E> causeClass) Java APIexpectCancellationWithCause(Throwable expectedCause) <E extends Throwable>
EexpectCancellationWithCause(scala.reflect.ClassTag<E> evidence$1) longlongpending()Current pending requests.unsafeSendNext(T elem) Methods inherited from class org.apache.pekko.stream.testkit.TestPublisher.ManualProbe
executeAfterSubscription, executeAfterSubscription, expectEventPF, expectNoMessage, expectNoMessage, expectNoMessage, expectRequest, expectSubscription, getPublisher, receiveWhile, receiveWhile, receiveWhile$default$1, receiveWhile$default$2, receiveWhile$default$3, subscribe, within, within, within, within
-
Method Details
-
ensureSubscription
public void ensureSubscription()Asserts that a subscription has been received or will be received -
pending
public long pending()Current pending requests. -
sendNext
-
unsafeSendNext
-
sendComplete
-
sendError
-
expectRequest
public long expectRequest() -
expectCancellation
-
expectCancellationWithCause
-
expectCancellationWithCause
-
expectCancellationWithCause
Java API
-