Package io.kroxylicious.proxy.config
Record Class VirtualClusterGateway
java.lang.Object
java.lang.Record
io.kroxylicious.proxy.config.VirtualClusterGateway
- Record Components:
name- name of the listenerportIdentifiesNode- network configsniHostIdentifiesNode- network configtls- tls settings
public record VirtualClusterGateway(String name, PortIdentifiesNodeIdentificationStrategy portIdentifiesNode, SniHostIdentifiesNodeIdentificationStrategy sniHostIdentifiesNode, Optional<io.kroxylicious.proxy.config.tls.Tls> tls)
extends Record
A virtual cluster listener.
-
Constructor Summary
ConstructorsConstructorDescriptionVirtualClusterGateway(String name, PortIdentifiesNodeIdentificationStrategy portIdentifiesNode, SniHostIdentifiesNodeIdentificationStrategy sniHostIdentifiesNode, Optional<io.kroxylicious.proxy.config.tls.Tls> tls) Creates an instance of aVirtualClusterGatewayrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbuildNodeIdentificationStrategy(String clusterName) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.Returns the value of theportIdentifiesNoderecord component.Returns the value of thesniHostIdentifiesNoderecord component.Optional<io.kroxylicious.proxy.config.tls.Tls> tls()Returns the value of thetlsrecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
VirtualClusterGateway
public VirtualClusterGateway(String name, @Nullable PortIdentifiesNodeIdentificationStrategy portIdentifiesNode, @Nullable SniHostIdentifiesNodeIdentificationStrategy sniHostIdentifiesNode, Optional<io.kroxylicious.proxy.config.tls.Tls> tls) Creates an instance of aVirtualClusterGatewayrecord class.- Parameters:
name- the value for thenamerecord componentportIdentifiesNode- the value for theportIdentifiesNoderecord componentsniHostIdentifiesNode- the value for thesniHostIdentifiesNoderecord componenttls- the value for thetlsrecord component
-
-
Method Details
-
buildNodeIdentificationStrategy
-
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). -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
portIdentifiesNode
Returns the value of theportIdentifiesNoderecord component.- Returns:
- the value of the
portIdentifiesNoderecord component
-
sniHostIdentifiesNode
Returns the value of thesniHostIdentifiesNoderecord component.- Returns:
- the value of the
sniHostIdentifiesNoderecord component
-
tls
Returns the value of thetlsrecord component.- Returns:
- the value of the
tlsrecord component
-