Record Class EndpointConnectivityController.Snapshot
java.lang.Object
java.lang.Record
org.cloudburstmc.netty.signaling.provider.connectivity.EndpointConnectivityController.Snapshot
- Enclosing class:
- EndpointConnectivityController
public static record EndpointConnectivityController.Snapshot(long candidateRevision, Map<EndpointSelection.Family,EndpointConnectivityController.FamilySnapshot> families)
extends Record
Revision changes only when the available endpoint set changes, not on unchanged STUN refreshes.
-
Constructor Summary
ConstructorsConstructorDescriptionSnapshot(long candidateRevision, Map<EndpointSelection.Family, EndpointConnectivityController.FamilySnapshot> families) Creates an instance of aSnapshotrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of thecandidateRevisionrecord component.final booleanIndicates whether some other object is "equal to" this one.families()Returns the value of thefamiliesrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Snapshot
public Snapshot(long candidateRevision, Map<EndpointSelection.Family, EndpointConnectivityController.FamilySnapshot> families) Creates an instance of aSnapshotrecord class.- Parameters:
candidateRevision- the value for thecandidateRevisionrecord componentfamilies- the value for thefamiliesrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
candidateRevision
public long candidateRevision()Returns the value of thecandidateRevisionrecord component.- Returns:
- the value of the
candidateRevisionrecord component
-
families
Returns the value of thefamiliesrecord component.- Returns:
- the value of the
familiesrecord component
-