Package org.techbd.udi
Record Class UdiPrimeJpaConfig.DataSourceHealthCheckResult
java.lang.Object
java.lang.Record
org.techbd.udi.UdiPrimeJpaConfig.DataSourceHealthCheckResult
- Enclosing class:
UdiPrimeJpaConfig
public static record UdiPrimeJpaConfig.DataSourceHealthCheckResult(DataSource dataSrc, Exception error, org.springframework.core.env.Environment environment, String[] expected)
extends Record
-
Constructor Summary
ConstructorDescriptionDataSourceHealthCheckResult
(DataSource dataSrc, Exception error, org.springframework.core.env.Environment environment, String... expected) Creates an instance of aDataSourceHealthCheckResult
record class. -
Method Summary
Modifier and TypeMethodDescriptiondataSrc()
Returns the value of thedataSrc
record component.org.springframework.core.env.Environment
Returns the value of theenvironment
record component.final boolean
Indicates whether some other object is "equal to" this one.error()
Returns the value of theerror
record component.String[]
expected()
Returns the value of theexpected
record component.final int
hashCode()
Returns a hash code value for this object.boolean
isAlive()
final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
DataSourceHealthCheckResult
public DataSourceHealthCheckResult(DataSource dataSrc, Exception error, org.springframework.core.env.Environment environment, String... expected) Creates an instance of aDataSourceHealthCheckResult
record class.- Parameters:
dataSrc
- the value for thedataSrc
record componenterror
- the value for theerror
record componentenvironment
- the value for theenvironment
record componentexpected
- the value for theexpected
record component
-
-
Method Details
-
isAlive
public boolean isAlive() -
expectedConf
-
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)
. -
dataSrc
Returns the value of thedataSrc
record component.- Returns:
- the value of the
dataSrc
record component
-
error
Returns the value of theerror
record component.- Returns:
- the value of the
error
record component
-
environment
public org.springframework.core.env.Environment environment()Returns the value of theenvironment
record component.- Returns:
- the value of the
environment
record component
-
expected
Returns the value of theexpected
record component.- Returns:
- the value of the
expected
record component
-