Package org.apache.pekko.stream.testkit
Class TestSubscriber.Probe<T>
java.lang.Object
org.apache.pekko.stream.testkit.TestSubscriber.ManualProbe<T>
org.apache.pekko.stream.testkit.TestSubscriber.Probe<T>
- All Implemented Interfaces:
org.reactivestreams.Subscriber<T>
- Enclosing class:
- TestSubscriber
Single subscription tracking for
TestSubscriber.ManualProbe.-
Method Summary
Modifier and TypeMethodDescriptioncancel()Asserts that a subscription has been received or will be receivedrequest(long n) Request and expect a stream element.JAVA APIrequestNext(scala.concurrent.duration.FiniteDuration d) Request and expect a stream element during the specified time or timeout.requestNext(T element) Request and expect a stream element.Methods inherited from class org.apache.pekko.stream.testkit.TestSubscriber.ManualProbe
expectComplete, expectError, expectError, expectEvent, expectEvent, expectEvent, expectEvent, expectEventPF, expectEventWithTimeoutPF, expectEventWithTimeoutPF, expectNext, expectNext, expectNext, expectNext, expectNext, expectNext, expectNext, expectNext, expectNextChainingPF, expectNextChainingPF, expectNextChainingPF, expectNextN, expectNextN, expectNextN, expectNextOrComplete, expectNextOrComplete, expectNextOrError, expectNextOrError, expectNextPF, expectNextUnordered, expectNextUnordered, expectNextUnorderedN, expectNextUnorderedN, expectNextWithTimeoutPF, expectNextWithTimeoutPF, expectNoMessage, expectNoMessage, expectNoMessage, expectSubscription, expectSubscriptionAndComplete, expectSubscriptionAndComplete, expectSubscriptionAndError, expectSubscriptionAndError, expectSubscriptionAndError, expectSubscriptionAndError, onComplete, onError, onNext, onSubscribe, receiveWhile, receiveWhile, receiveWhile$default$1, receiveWhile$default$2, receiveWhile$default$3, receiveWithin, receiveWithin, receiveWithin$default$2, toStrict, toStrict, within, within, within, within
-
Method Details
-
ensureSubscription
Asserts that a subscription has been received or will be received -
request
-
requestNext
Request and expect a stream element. -
cancel
-
cancel
-
requestNext
Request and expect a stream element. -
requestNext
Request and expect a stream element during the specified time or timeout. -
requestNext
JAVA APIRequest and expect a stream element during the specified time or timeout.
- Since:
- 1.1.0
-