Package org.cloudburstmc.netty.signaling
Record Class ProviderTransport.ConnectivityCheck
java.lang.Object
java.lang.Record
org.cloudburstmc.netty.signaling.ProviderTransport.ConnectivityCheck
- Enclosing interface:
- ProviderTransport
public static record ProviderTransport.ConnectivityCheck(String region, int family, String method, InetSocketAddress target, ProviderTransport.ConnectivityOutcome outcome, long checkedAt, long expiresAt)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionConnectivityCheck(String region, int family, String method, InetSocketAddress target, ProviderTransport.ConnectivityOutcome outcome, long checkedAt, long expiresAt) Creates an instance of aConnectivityCheckrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of thecheckedAtrecord component.final booleanIndicates whether some other object is "equal to" this one.longReturns the value of theexpiresAtrecord component.intfamily()Returns the value of thefamilyrecord component.final inthashCode()Returns a hash code value for this object.method()Returns the value of themethodrecord component.outcome()Returns the value of theoutcomerecord component.region()Returns the value of theregionrecord component.target()Returns the value of thetargetrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ConnectivityCheck
public ConnectivityCheck(String region, int family, String method, InetSocketAddress target, ProviderTransport.ConnectivityOutcome outcome, long checkedAt, long expiresAt) Creates an instance of aConnectivityCheckrecord class.- Parameters:
region- the value for theregionrecord componentfamily- the value for thefamilyrecord componentmethod- the value for themethodrecord componenttarget- the value for thetargetrecord componentoutcome- the value for theoutcomerecord componentcheckedAt- the value for thecheckedAtrecord componentexpiresAt- the value for theexpiresAtrecord 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 '=='. -
region
Returns the value of theregionrecord component.- Returns:
- the value of the
regionrecord component
-
family
public int family()Returns the value of thefamilyrecord component.- Returns:
- the value of the
familyrecord component
-
method
Returns the value of themethodrecord component.- Returns:
- the value of the
methodrecord component
-
target
Returns the value of thetargetrecord component.- Returns:
- the value of the
targetrecord component
-
outcome
Returns the value of theoutcomerecord component.- Returns:
- the value of the
outcomerecord component
-
checkedAt
public long checkedAt()Returns the value of thecheckedAtrecord component.- Returns:
- the value of the
checkedAtrecord component
-
expiresAt
public long expiresAt()Returns the value of theexpiresAtrecord component.- Returns:
- the value of the
expiresAtrecord component
-