Package org.apache.pekko.stream.testkit
Class StreamTestKit.PublisherProbeSubscription<I>
- java.lang.Object
-
- org.apache.pekko.stream.testkit.StreamTestKit.PublisherProbeSubscription<I>
-
- All Implemented Interfaces:
java.io.Serializable,SubscriptionWithCancelException,org.reactivestreams.Subscription,scala.Equals,scala.Product
- Enclosing class:
- StreamTestKit
public static final class StreamTestKit.PublisherProbeSubscription<I> extends java.lang.Object implements org.reactivestreams.Subscription, SubscriptionWithCancelException, scala.Product, java.io.Serializable
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.pekko.stream.SubscriptionWithCancelException
SubscriptionWithCancelException.NoMoreElementsNeeded$, SubscriptionWithCancelException.NonFailureCancellation, SubscriptionWithCancelException.StageWasCompleted$
-
-
Constructor Summary
Constructors Constructor Description PublisherProbeSubscription(org.reactivestreams.Subscriber<? super I> subscriber, TestProbe publisherProbe)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcancel(java.lang.Throwable cause)booleancanEqual(java.lang.Object x$1)<I> StreamTestKit.PublisherProbeSubscription<I>copy(org.reactivestreams.Subscriber<? super I> subscriber, TestProbe publisherProbe)<I> org.reactivestreams.Subscriber<? super I>copy$default$1()<I> TestProbecopy$default$2()booleanequals(java.lang.Object x$1)java.lang.ThrowableexpectCancellation()longexpectRequest()voidexpectRequest(long n)inthashCode()intproductArity()java.lang.ObjectproductElement(int x$1)java.lang.StringproductElementName(int x$1)scala.collection.Iterator<java.lang.Object>productIterator()java.lang.StringproductPrefix()TestProbepublisherProbe()voidrequest(long elements)voidsendComplete()voidsendError(java.lang.Throwable cause)voidsendNext(I element)voidsendOnSubscribe()org.reactivestreams.Subscriber<? super I>subscriber()java.lang.StringtoString()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.pekko.stream.SubscriptionWithCancelException
cancel
-
-
-
-
Method Detail
-
subscriber
public org.reactivestreams.Subscriber<? super I> subscriber()
-
publisherProbe
public TestProbe publisherProbe()
-
request
public void request(long elements)
- Specified by:
requestin interfaceorg.reactivestreams.Subscription
-
cancel
public void cancel(java.lang.Throwable cause)
- Specified by:
cancelin interfaceSubscriptionWithCancelException
-
expectRequest
public void expectRequest(long n)
-
expectRequest
public long expectRequest()
-
expectCancellation
public java.lang.Throwable expectCancellation()
-
sendNext
public void sendNext(I element)
-
sendComplete
public void sendComplete()
-
sendError
public void sendError(java.lang.Throwable cause)
-
sendOnSubscribe
public void sendOnSubscribe()
-
copy
public <I> StreamTestKit.PublisherProbeSubscription<I> copy(org.reactivestreams.Subscriber<? super I> subscriber, TestProbe publisherProbe)
-
copy$default$1
public <I> org.reactivestreams.Subscriber<? super I> copy$default$1()
-
copy$default$2
public <I> TestProbe copy$default$2()
-
productPrefix
public java.lang.String productPrefix()
- Specified by:
productPrefixin interfacescala.Product
-
productArity
public int productArity()
- Specified by:
productArityin interfacescala.Product
-
productElement
public java.lang.Object productElement(int x$1)
- Specified by:
productElementin interfacescala.Product
-
productIterator
public scala.collection.Iterator<java.lang.Object> productIterator()
- Specified by:
productIteratorin interfacescala.Product
-
canEqual
public boolean canEqual(java.lang.Object x$1)
- Specified by:
canEqualin interfacescala.Equals
-
productElementName
public java.lang.String productElementName(int x$1)
- Specified by:
productElementNamein interfacescala.Product
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object x$1)
- Specified by:
equalsin interfacescala.Equals- Overrides:
equalsin classjava.lang.Object
-
-