Record Class SendBuffer.Transmit
java.lang.Object
java.lang.Record
io.github.mahmoudimus.quic.connection.SendBuffer.Transmit
- Record Components:
start- the first stream offsetend- one past the last stream offsetencodeLength- whether the STREAM frame needs a Length field; false when the data fills the rest of the packet
- Enclosing class:
SendBuffer
The range
SendBuffer.pollTransmit(int) chose to send next.-
Constructor Summary
ConstructorsConstructorDescriptionTransmit(long start, long end, boolean encodeLength) Creates an instance of aTransmitrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of theencodeLengthrecord component.longend()Returns the value of theendrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longstart()Returns the value of thestartrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Transmit
public Transmit(long start, long end, boolean encodeLength) Creates an instance of aTransmitrecord class.- Parameters:
start- the value for thestartrecord componentend- the value for theendrecord componentencodeLength- the value for theencodeLengthrecord 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 with '=='. -
start
public long start()Returns the value of thestartrecord component.- Returns:
- the value of the
startrecord component
-
end
public long end()Returns the value of theendrecord component.- Returns:
- the value of the
endrecord component
-
encodeLength
public boolean encodeLength()Returns the value of theencodeLengthrecord component.- Returns:
- the value of the
encodeLengthrecord component
-