Record Class RetryablePropertySourceImporter.RetryableImportDeclaration<D>
java.lang.Object
java.lang.Record
io.micronaut.discovery.config.RetryablePropertySourceImporter.RetryableImportDeclaration<D>
- Type Parameters:
D- The importer-specific declaration type- Record Components:
declaration- The importer-specific declarationretryPolicy- The resolved retry policy
- Enclosing class:
RetryablePropertySourceImporter<D>
public static record RetryablePropertySourceImporter.RetryableImportDeclaration<D>(D declaration, RetryPolicy retryPolicy)
extends Record
Retry-aware wrapper around an importer-specific declaration.
- Since:
- 5.0
-
Constructor Summary
ConstructorsConstructorDescriptionRetryableImportDeclaration(D declaration, RetryPolicy retryPolicy) Creates a retry-aware import declaration. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedeclarationrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theretryPolicyrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RetryableImportDeclaration
Creates a retry-aware import declaration.- Parameters:
declaration- The importer-specific declarationretryPolicy- The retry policy used for import execution
-
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
declaration
Returns the value of thedeclarationrecord component.- Returns:
- the value of the
declarationrecord component
-
retryPolicy
Returns the value of theretryPolicyrecord component.- Returns:
- the value of the
retryPolicyrecord component
-