Record Class ConfigurationUpdateStrategy
java.lang.Object
java.lang.Record
org.springframework.cloud.kubernetes.commons.config.reload.ConfigurationUpdateStrategy
This is the superclass of all named strategies that can be fired when the configuration
changes.
- Author:
- Nicola Ferraro
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ConfigurationUpdateStrategyStrategy that does nothing. -
Constructor Summary
ConstructorsConstructorDescriptionConfigurationUpdateStrategy(String name, Runnable reloadProcedure) Creates an instance of aConfigurationUpdateStrategyrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal 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 thereloadProcedurerecord component.toString()Returns a string representation of this record class.
-
Field Details
-
NOOP
Strategy that does nothing.
-
-
Constructor Details
-
ConfigurationUpdateStrategy
Creates an instance of aConfigurationUpdateStrategyrecord class.- Parameters:
name- the value for thenamerecord componentreloadProcedure- the value for thereloadProcedurerecord 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). -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
reloadProcedure
Returns the value of thereloadProcedurerecord component.- Returns:
- the value of the
reloadProcedurerecord component
-