Record Class ManagementConfiguration
java.lang.Object
java.lang.Record
io.kroxylicious.proxy.config.admin.ManagementConfiguration
- Record Components:
bindAddress- bind address for the management interface. If omitted, all network interfaces will be bound.port- management portendpoints- management endpoint configuration
public record ManagementConfiguration(String bindAddress, Integer port, EndpointsConfiguration endpoints)
extends Record
Management configuration.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionManagementConfiguration(String bindAddress, Integer port, EndpointsConfiguration endpoints) Creates an instance of aManagementConfigurationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebindAddressrecord component.Returns the value of theendpointsrecord component.final booleanIndicates whether some other object is "equal to" this one.Gets the effective bind address for management taking into account defaults.intGets the effective port for management taking into account defaults.final inthashCode()Returns a hash code value for this object.port()Returns the value of theportrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
DEFAULT_MANAGEMENT_PORT
public static final int DEFAULT_MANAGEMENT_PORT- See Also:
-
DEFAULT_BIND_ADDRESS
- See Also:
-
-
Constructor Details
-
ManagementConfiguration
public ManagementConfiguration(@Nullable String bindAddress, @Nullable Integer port, @Nullable EndpointsConfiguration endpoints) Creates an instance of aManagementConfigurationrecord class.- Parameters:
bindAddress- the value for thebindAddressrecord componentport- the value for theportrecord componentendpoints- the value for theendpointsrecord component
-
-
Method Details
-
getEffectivePort
public int getEffectivePort()Gets the effective port for management taking into account defaults.- Returns:
- port
-
getEffectiveBindAddress
Gets the effective bind address for management taking into account defaults.- Returns:
- bind address
-
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). -
bindAddress
Returns the value of thebindAddressrecord component.- Returns:
- the value of the
bindAddressrecord component
-
port
Returns the value of theportrecord component.- Returns:
- the value of the
portrecord component
-
endpoints
Returns the value of theendpointsrecord component.- Returns:
- the value of the
endpointsrecord component
-