Package akka.stream.testkit
Class TestPublisher.Probe<T>
- java.lang.Object
- 
- akka.stream.testkit.TestPublisher.ManualProbe<T>
- 
- akka.stream.testkit.TestPublisher.Probe<T>
 
 
- 
- All Implemented Interfaces:
- org.reactivestreams.Publisher<T>
 - Enclosing class:
- TestPublisher
 
 public static class TestPublisher.Probe<T> extends TestPublisher.ManualProbe<T> Single subscription and demand tracking forTestPublisher.ManualProbe.
- 
- 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidensureSubscription()Asserts that a subscription has been received or will be receivedTestPublisher.Probe<T>expectCancellation()<E extends java.lang.Throwable>
 EexpectCancellationWithCause(java.lang.Class<E> causeClass)Java APITestPublisher.Probe<T>expectCancellationWithCause(java.lang.Throwable expectedCause)<E extends java.lang.Throwable>
 EexpectCancellationWithCause(scala.reflect.ClassTag<E> evidence$1)longexpectRequest()longpending()Current pending requests.TestPublisher.Probe<T>sendComplete()TestPublisher.Probe<T>sendError(java.lang.Throwable cause)TestPublisher.Probe<T>sendNext(T elem)TestPublisher.Probe<T>unsafeSendNext(T elem)- 
Methods inherited from class akka.stream.testkit.TestPublisher.ManualProbeexecuteAfterSubscription, expectEventPF, expectNoMessage, expectNoMessage, expectRequest, expectSubscription, getPublisher, receiveWhile, receiveWhile$default$1, receiveWhile$default$2, receiveWhile$default$3, subscribe, within, within
 
- 
 
- 
- 
- 
Method Detail- 
ensureSubscriptionpublic void ensureSubscription() Asserts that a subscription has been received or will be received
 - 
pendingpublic long pending() Current pending requests.
 - 
sendNextpublic TestPublisher.Probe<T> sendNext(T elem) 
 - 
unsafeSendNextpublic TestPublisher.Probe<T> unsafeSendNext(T elem) 
 - 
sendCompletepublic TestPublisher.Probe<T> sendComplete() 
 - 
sendErrorpublic TestPublisher.Probe<T> sendError(java.lang.Throwable cause) 
 - 
expectRequestpublic long expectRequest() 
 - 
expectCancellationpublic TestPublisher.Probe<T> expectCancellation() 
 - 
expectCancellationWithCausepublic TestPublisher.Probe<T> expectCancellationWithCause(java.lang.Throwable expectedCause) 
 - 
expectCancellationWithCausepublic <E extends java.lang.Throwable> E expectCancellationWithCause(scala.reflect.ClassTag<E> evidence$1) 
 - 
expectCancellationWithCausepublic <E extends java.lang.Throwable> E expectCancellationWithCause(java.lang.Class<E> causeClass) Java API
 
- 
 
-