Package org.cloudburstmc.netty.signaling
Record Class ProviderClient.Registration
java.lang.Object
java.lang.Record
org.cloudburstmc.netty.signaling.ProviderClient.Registration
- Enclosing class:
- ProviderClient
public static record ProviderClient.Registration(String registrationId, String instanceId, String keyId, long leaseGeneration, String serviceId, String publicAddress)
extends Record
The assigned runtime identity.
serviceId and publicAddress are both present or both null.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theinstanceIdrecord component.keyId()Returns the value of thekeyIdrecord component.longReturns the value of theleaseGenerationrecord component.Returns the value of thepublicAddressrecord component.Returns the value of theregistrationIdrecord component.Returns the value of theserviceIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Registration
public Registration(String registrationId, String instanceId, String keyId, long leaseGeneration, String serviceId, String publicAddress) Creates an instance of aRegistrationrecord class.- Parameters:
registrationId- the value for theregistrationIdrecord componentinstanceId- the value for theinstanceIdrecord componentkeyId- the value for thekeyIdrecord componentleaseGeneration- the value for theleaseGenerationrecord componentserviceId- the value for theserviceIdrecord componentpublicAddress- the value for thepublicAddressrecord 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 '=='. -
registrationId
Returns the value of theregistrationIdrecord component.- Returns:
- the value of the
registrationIdrecord component
-
instanceId
Returns the value of theinstanceIdrecord component.- Returns:
- the value of the
instanceIdrecord component
-
keyId
Returns the value of thekeyIdrecord component.- Returns:
- the value of the
keyIdrecord component
-
leaseGeneration
public long leaseGeneration()Returns the value of theleaseGenerationrecord component.- Returns:
- the value of the
leaseGenerationrecord component
-
serviceId
Returns the value of theserviceIdrecord component.- Returns:
- the value of the
serviceIdrecord component
-
publicAddress
Returns the value of thepublicAddressrecord component.- Returns:
- the value of the
publicAddressrecord component
-