Record Class ConsulPropertySourceImporter.ConsulImport
java.lang.Object
java.lang.Record
io.micronaut.discovery.consul.imports.ConsulPropertySourceImporter.ConsulImport
- Record Components:
properties- The importer child-context propertiesformat- The Consul config formatdatacenter- The optional Consul datacenterwatchEnabled- Whether importer-driven watch refresh is enabledpath- The explicit Consul import pathoptional- Whether the import is optionalretryPolicy- The resolved import retry policy
- Enclosing class:
ConsulPropertySourceImporter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable StringReturns the value of thedatacenterrecord component.final booleanIndicates whether some other object is "equal to" this one.format()Returns the value of theformatrecord component.final inthashCode()Returns a hash code value for this object.booleanoptional()Returns the value of theoptionalrecord component.path()Returns the value of thepathrecord component.Returns the value of thepropertiesrecord component.io.micronaut.retry.RetryPolicyReturns the value of theretryPolicyrecord component.final StringtoString()Returns a string representation of this record class.booleanReturns the value of thewatchEnabledrecord component.
-
Constructor Details
-
ConsulImport
public ConsulImport(Map<String, Object> properties, String format, @Nullable String datacenter, boolean watchEnabled, String path, boolean optional, io.micronaut.retry.RetryPolicy retryPolicy) Creates an instance of aConsulImportrecord class.- Parameters:
properties- the value for thepropertiesrecord componentformat- the value for theformatrecord componentdatacenter- the value for thedatacenterrecord componentwatchEnabled- the value for thewatchEnabledrecord componentpath- the value for thepathrecord componentoptional- the value for theoptionalrecord componentretryPolicy- the value for theretryPolicyrecord component
-
-
Method Details
-
toString
-
hashCode
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
properties
Returns the value of thepropertiesrecord component.- Returns:
- the value of the
propertiesrecord component
-
format
-
datacenter
Returns the value of thedatacenterrecord component.- Returns:
- the value of the
datacenterrecord component
-
watchEnabled
public boolean watchEnabled()Returns the value of thewatchEnabledrecord component.- Returns:
- the value of the
watchEnabledrecord component
-
path
-
optional
-
retryPolicy
public io.micronaut.retry.RetryPolicy retryPolicy()Returns the value of theretryPolicyrecord component.- Returns:
- the value of the
retryPolicyrecord component
-