Record Class NuggetDiscovery.EndpointDescriptor
java.lang.Object
java.lang.Record
org.j7m.middleware.operations.api.NuggetDiscovery.EndpointDescriptor
- Record Components:
transport- logical administration transport or connector kindscheme- safe endpoint scheme or connector schemehost- safe host name or classification, empty for local endpointsport- TCP/UDP port, or-1when not applicablelocalId- safe local endpoint identifier, empty for remote endpoints
- Enclosing class:
NuggetDiscovery
public static record NuggetDiscovery.EndpointDescriptor(String transport, String scheme, String host, int port, String localId)
extends Record
Safe endpoint descriptor.
The descriptor contains only minimal addressing data. It rejects URI user information, query strings, fragments, blank schemes, invalid ports, and overlong text. Possession of a descriptor is not an admission or authorization credential.
-
Constructor Summary
ConstructorsConstructorDescriptionEndpointDescriptor(String transport, String scheme, String host, int port, String localId) Creates a bounded safe endpoint descriptor. -
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.host()Returns the value of thehostrecord component.Creates a local connector descriptor.localId()Returns the value of thelocalIdrecord component.intport()Returns the value of theportrecord component.scheme()Returns the value of theschemerecord component.toString()Returns the value of thetransportrecord component.
-
Constructor Details
-
EndpointDescriptor
-
-
Method Details
-
local
Creates a local connector descriptor.- Parameters:
localId- local connector identity- Returns:
- endpoint descriptor
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
transport
-
scheme
-
host
-
port
-
localId
-