Package akka.stream.testkit
Class StreamTestKit.PublisherProbeSubscription<I>
- java.lang.Object
-
- akka.stream.testkit.StreamTestKit.PublisherProbeSubscription<I>
-
- All Implemented Interfaces:
SubscriptionWithCancelException
,java.io.Serializable
,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 akka.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 void
cancel(java.lang.Throwable cause)
boolean
canEqual(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> TestProbe
copy$default$2()
boolean
equals(java.lang.Object x$1)
java.lang.Throwable
expectCancellation()
long
expectRequest()
void
expectRequest(long n)
int
hashCode()
int
productArity()
java.lang.Object
productElement(int x$1)
java.lang.String
productElementName(int x$1)
scala.collection.Iterator<java.lang.Object>
productIterator()
java.lang.String
productPrefix()
TestProbe
publisherProbe()
void
request(long elements)
void
sendComplete()
void
sendError(java.lang.Throwable cause)
void
sendNext(I element)
void
sendOnSubscribe()
org.reactivestreams.Subscriber<? super I>
subscriber()
java.lang.String
toString()
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface akka.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:
request
in interfaceorg.reactivestreams.Subscription
-
cancel
public void cancel(java.lang.Throwable cause)
- Specified by:
cancel
in 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:
productPrefix
in interfacescala.Product
-
productArity
public int productArity()
- Specified by:
productArity
in interfacescala.Product
-
productElement
public java.lang.Object productElement(int x$1)
- Specified by:
productElement
in interfacescala.Product
-
productIterator
public scala.collection.Iterator<java.lang.Object> productIterator()
- Specified by:
productIterator
in interfacescala.Product
-
canEqual
public boolean canEqual(java.lang.Object x$1)
- Specified by:
canEqual
in interfacescala.Equals
-
productElementName
public java.lang.String productElementName(int x$1)
- Specified by:
productElementName
in interfacescala.Product
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object x$1)
- Specified by:
equals
in interfacescala.Equals
- Overrides:
equals
in classjava.lang.Object
-
-