Record Class BootstrapEndpointBinding
java.lang.Object
java.lang.Record
io.kroxylicious.proxy.internal.net.BootstrapEndpointBinding
- Record Components:
endpointGateway- the endpoint gateway
- All Implemented Interfaces:
EndpointBinding
public record BootstrapEndpointBinding(EndpointGateway endpointGateway)
extends Record
implements EndpointBinding
A bootstrap binding.
-
Constructor Summary
ConstructorsConstructorDescriptionBootstrapEndpointBinding(EndpointGateway endpointGateway) Creates an instance of aBootstrapEndpointBindingrecord 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 broker node id associated with this endpoint.final StringtoString()Returns a string representation of this record class.The upstream target of this binding.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface io.kroxylicious.proxy.internal.net.EndpointBinding
restrictUpstreamToMetadataDiscovery
-
Constructor Details
-
BootstrapEndpointBinding
Creates an instance of aBootstrapEndpointBindingrecord class.- Parameters:
endpointGateway- the value for theendpointGatewayrecord component
-
-
Method Details
-
upstreamTarget
Description copied from interface:EndpointBindingThe upstream target of this binding.- Specified by:
upstreamTargetin interfaceEndpointBinding- Returns:
- upstream target.
-
nodeId
Description copied from interface:EndpointBindingReturns the broker node id associated with this endpoint. If the endpoint is being used for bootstrapping, null will be returned instead.- Specified by:
nodeIdin interfaceEndpointBinding- Returns:
- node id or null.
-
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
-