Record Class StreamExchangeResult
java.lang.Object
java.lang.Record
org.j7m.middleware.examples.streaming.StreamExchangeResult
- Record Components:
acceptedClientItems- accepted client item countserverItems- server-side items returned to the callerbackpressure- whether backpressure was observed
-
Constructor Summary
ConstructorsConstructorDescriptionStreamExchangeResult(int acceptedClientItems, List<String> serverItems, boolean backpressure) Creates an exchange result. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of theacceptedClientItemsrecord component.booleanReturns the value of thebackpressurerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theserverItemsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
StreamExchangeResult
-
-
Method Details
-
toString
-
hashCode
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
acceptedClientItems
public int acceptedClientItems()Returns the value of theacceptedClientItemsrecord component.- Returns:
- the value of the
acceptedClientItemsrecord component
-
serverItems
Returns the value of theserverItemsrecord component.- Returns:
- the value of the
serverItemsrecord component
-
backpressure
public boolean backpressure()Returns the value of thebackpressurerecord component.- Returns:
- the value of the
backpressurerecord component
-