Record Class ProviderRuntimeConfiguration.Settings
java.lang.Object
java.lang.Record
org.cloudburstmc.netty.signalling.provider.ProviderRuntimeConfiguration.Settings
- Record Components:
endpoint- The provider origintoken- A bearer token, afile:path to one, or empty to register anonymouslyadvertiseAddresses- Reachablehost:portendpoints, empty to derive themdata- Instance metadata;regionandpoolplace it and anything else is a registration tag
- Enclosing class:
- ProviderRuntimeConfiguration
public static record ProviderRuntimeConfiguration.Settings(String endpoint, String token, List<String> advertiseAddresses, Map<String,String> data)
extends Record
What a host's configuration has to supply, so this does not depend on how it stores it.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theadvertiseAddressesrecord component.data()Returns the value of thedatarecord component.endpoint()Returns the value of theendpointrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.token()Returns the value of thetokenrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Settings
public Settings(String endpoint, String token, List<String> advertiseAddresses, Map<String, String> data) Creates an instance of aSettingsrecord class.- Parameters:
endpoint- the value for theendpointrecord componenttoken- the value for thetokenrecord componentadvertiseAddresses- the value for theadvertiseAddressesrecord componentdata- the value for thedatarecord 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 withObjects::equals(Object,Object). -
endpoint
Returns the value of theendpointrecord component.- Returns:
- the value of the
endpointrecord component
-
token
Returns the value of thetokenrecord component.- Returns:
- the value of the
tokenrecord component
-
advertiseAddresses
Returns the value of theadvertiseAddressesrecord component.- Returns:
- the value of the
advertiseAddressesrecord component
-
data
Returns the value of thedatarecord component.- Returns:
- the value of the
datarecord component
-