Package akka.javasdk.testkit
Record Class WebSocketRouteTester.WsConnection<T>
- Enclosing interface:
WebSocketRouteTester
-
Constructor Summary
ConstructorsConstructorDescriptionWsConnection(akka.stream.testkit.TestPublisher.Probe<T> publisher, akka.stream.testkit.TestSubscriber.Probe<T> subscriber) Creates an instance of aWsConnectionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.akka.stream.testkit.TestPublisher.Probe<T> Returns the value of thepublisherrecord component.akka.stream.testkit.TestSubscriber.Probe<T> Returns the value of thesubscriberrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
WsConnection
public WsConnection(akka.stream.testkit.TestPublisher.Probe<T> publisher, akka.stream.testkit.TestSubscriber.Probe<T> subscriber) Creates an instance of aWsConnectionrecord class.- Parameters:
publisher- the value for thepublisherrecord componentsubscriber- the value for thesubscriberrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
publisher
Returns the value of thepublisherrecord component.- Returns:
- the value of the
publisherrecord component
-
subscriber
Returns the value of thesubscriberrecord component.- Returns:
- the value of the
subscriberrecord component
-