Record Class Transmit
java.lang.Object
java.lang.Record
io.github.mahmoudimus.quic.connection.Transmit
- Record Components:
datagram- the datagram, from position 0 to its lengthdestination- where to send itsource- the local address to send it from, or null for the endpoint's default
public record Transmit(ByteBuffer datagram, InetSocketAddress destination, InetSocketAddress source)
extends Record
A datagram a
Connection wants sent: usually to the peer's address on the current path,
but a PATH_CHALLENGE or PATH_RESPONSE may go to another address, or (on a client probing a new
path, Connection.probePath(long, java.net.InetSocketAddress)) from another local address.-
Constructor Summary
ConstructorsConstructorDescriptionTransmit(ByteBuffer datagram, InetSocketAddress destination, InetSocketAddress source) A datagram to send. -
Method Summary
Modifier and TypeMethodDescriptiondatagram()Returns the value of thedatagramrecord component.Returns the value of thedestinationrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.source()Returns the value of thesourcerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Transmit
A datagram to send.- Parameters:
datagram- the datagramdestination- where to send itsource- the local address to send it from, or null for the endpoint's default
-
-
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). -
datagram
Returns the value of thedatagramrecord component.- Returns:
- the value of the
datagramrecord component
-
destination
Returns the value of thedestinationrecord component.- Returns:
- the value of the
destinationrecord component
-
source
Returns the value of thesourcerecord component.- Returns:
- the value of the
sourcerecord component
-