Record Class BrokerEndpointBinding
java.lang.Object
java.lang.Record
io.kroxylicious.proxy.internal.net.BrokerEndpointBinding
- Record Components:
endpointGateway- the endpoint listenerupstreamTarget- the upstream target of this bindingnodeId- kafka nodeId of the target broker
- All Implemented Interfaces:
EndpointBinding,NodeSpecificEndpointBinding
public record BrokerEndpointBinding(EndpointGateway endpointGateway, HostPort upstreamTarget, Integer nodeId)
extends Record
implements NodeSpecificEndpointBinding
A broker specific endpoint binding.
-
Constructor Summary
ConstructorsConstructorDescriptionBrokerEndpointBinding(EndpointGateway endpointGateway, HostPort upstreamTarget, Integer nodeId) Creates an instance of aBrokerEndpointBindingrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theendpointGatewayrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.nodeId()Returns the value of thenodeIdrecord component.toString()Returns a string representation of this record class.Returns the value of theupstreamTargetrecord component.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface io.kroxylicious.proxy.internal.net.EndpointBinding
restrictUpstreamToMetadataDiscoveryMethods inherited from interface io.kroxylicious.proxy.internal.net.NodeSpecificEndpointBinding
refersToSameVirtualClusterAndNode
-
Constructor Details
-
BrokerEndpointBinding
public BrokerEndpointBinding(EndpointGateway endpointGateway, HostPort upstreamTarget, Integer nodeId) Creates an instance of aBrokerEndpointBindingrecord class.- Parameters:
endpointGateway- the value for theendpointGatewayrecord componentupstreamTarget- the value for theupstreamTargetrecord componentnodeId- the value for thenodeIdrecord component
-
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
endpointGateway
Returns the value of theendpointGatewayrecord component.- Specified by:
endpointGatewayin interfaceEndpointBinding- Returns:
- the value of the
endpointGatewayrecord component
-
upstreamTarget
Returns the value of theupstreamTargetrecord component.- Specified by:
upstreamTargetin interfaceEndpointBinding- Returns:
- the value of the
upstreamTargetrecord component
-
nodeId
Returns the value of thenodeIdrecord component.- Specified by:
nodeIdin interfaceEndpointBinding- Specified by:
nodeIdin interfaceNodeSpecificEndpointBinding- Returns:
- the value of the
nodeIdrecord component
-