Record Class ProviderRuntimeConfiguration.Settings
java.lang.Object
java.lang.Record
org.cloudburstmc.netty.signaling.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, ProviderClient.ControlTransport controlTransport, boolean diagnosticAdmission, boolean maintainedCandidates, boolean assistedJoins)
extends Record
What a host's configuration has to supply, so this does not depend on how it stores it.
-
Constructor Summary
ConstructorsConstructorDescriptionSettings(String endpoint, String token, List<String> advertiseAddresses, Map<String, String> data, ProviderClient.ControlTransport controlTransport) Settings(String endpoint, String token, List<String> advertiseAddresses, Map<String, String> data, ProviderClient.ControlTransport controlTransport, boolean diagnosticAdmission) Settings(String endpoint, String token, List<String> advertiseAddresses, Map<String, String> data, ProviderClient.ControlTransport controlTransport, boolean diagnosticAdmission, boolean maintainedCandidates) Settings(String endpoint, String token, List<String> advertiseAddresses, Map<String, String> data, ProviderClient.ControlTransport controlTransport, boolean diagnosticAdmission, boolean maintainedCandidates, boolean assistedJoins) Creates an instance of aSettingsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theadvertiseAddressesrecord component.booleanReturns the value of theassistedJoinsrecord component.Returns the value of thecontrolTransportrecord component.data()Returns the value of thedatarecord component.booleanReturns the value of thediagnosticAdmissionrecord 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.booleanReturns the value of themaintainedCandidatesrecord component.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, ProviderClient.ControlTransport controlTransport, boolean diagnosticAdmission, boolean maintainedCandidates, boolean assistedJoins) 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 componentcontrolTransport- the value for thecontrolTransportrecord componentdiagnosticAdmission- the value for thediagnosticAdmissionrecord componentmaintainedCandidates- the value for themaintainedCandidatesrecord componentassistedJoins- the value for theassistedJoinsrecord component
-
Settings
-
Settings
-
Settings
-
Settings
-
-
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 '=='. -
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
-
controlTransport
Returns the value of thecontrolTransportrecord component.- Returns:
- the value of the
controlTransportrecord component
-
diagnosticAdmission
public boolean diagnosticAdmission()Returns the value of thediagnosticAdmissionrecord component.- Returns:
- the value of the
diagnosticAdmissionrecord component
-
maintainedCandidates
public boolean maintainedCandidates()Returns the value of themaintainedCandidatesrecord component.- Returns:
- the value of the
maintainedCandidatesrecord component
-
assistedJoins
public boolean assistedJoins()Returns the value of theassistedJoinsrecord component.- Returns:
- the value of the
assistedJoinsrecord component
-