Record Class ProviderEndpoint
java.lang.Object
java.lang.Record
org.cloudburstmc.netty.signaling.provider.ProviderEndpoint
public record ProviderEndpoint(InetSocketAddress bind, List<InetSocketAddress> advertised)
extends Record
Bound addresses plus operator-provisioned forwarding endpoints. Discovery never guesses NAT mappings.
-
Constructor Summary
ConstructorsConstructorDescriptionProviderEndpoint(InetSocketAddress bind, List<InetSocketAddress> advertised) Creates an instance of aProviderEndpointrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theadvertisedrecord component.bind()Returns the value of thebindrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.static ProviderEndpointresolve(InetSocketAddress bind, List<InetSocketAddress> external, boolean localDevelopment) final StringtoString()Returns a string representation of this record class.warnings()
-
Constructor Details
-
ProviderEndpoint
Creates an instance of aProviderEndpointrecord class.- Parameters:
bind- the value for thebindrecord componentadvertised- the value for theadvertisedrecord component
-
-
Method Details
-
resolve
public static ProviderEndpoint resolve(InetSocketAddress bind, List<InetSocketAddress> external, boolean localDevelopment) throws IOException - Throws:
IOException
-
warnings
-
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). -
bind
Returns the value of thebindrecord component.- Returns:
- the value of the
bindrecord component
-
advertised
Returns the value of theadvertisedrecord component.- Returns:
- the value of the
advertisedrecord component
-