Record Class Endpoint
java.lang.Object
java.lang.Record
io.kroxylicious.proxy.internal.net.Endpoint
- Record Components:
bindingAddress- address of the interface to which the endpoint is bound.Optional.empty()indicates the 'any' address.port- port numbertls- true if TLS is in use for this endpoint.
Represents a network endpoint. Network endpoints accepts Kafka protocol traffic on behalf of a virtual clusters.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebindingAddressrecord component.static EndpointcreateEndpoint(int port, boolean tls) static EndpointcreateEndpoint(io.netty.channel.Channel ch, boolean tls) static EndpointcreateEndpoint(Optional<String> bindingAddress, int port, boolean tls) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intport()Returns the value of theportrecord component.booleantls()Returns the value of thetlsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Endpoint
Creates an instance of aEndpointrecord class.- Parameters:
bindingAddress- the value for thebindingAddressrecord componentport- the value for theportrecord componenttls- the value for thetlsrecord component
-
-
Method Details
-
createEndpoint
-
createEndpoint
-
createEndpoint
-
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 '=='. -
bindingAddress
Returns the value of thebindingAddressrecord component.- Returns:
- the value of the
bindingAddressrecord component
-
port
public int port()Returns the value of theportrecord component.- Returns:
- the value of the
portrecord component
-
tls
public boolean tls()Returns the value of thetlsrecord component.- Returns:
- the value of the
tlsrecord component
-