Package co.cryptoservice.sdk
Record Class HealthResult
java.lang.Object
java.lang.Record
co.cryptoservice.sdk.HealthResult
- Record Components:
status- the statusstatusCode- the statusCodeuptime- process uptime in seconds
What
GET /health answers: health check.-
Constructor Summary
ConstructorsConstructorDescriptionHealthResult(String status, int statusCode, double uptime) Creates an instance of aHealthResultrecord 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.status()Returns the value of thestatusrecord component.intReturns the value of thestatusCoderecord component.toString()Names the members; values that may be secret (keys, plaintexts, passwords, signatures) are redacted.doubleuptime()Returns the value of theuptimerecord component.
-
Constructor Details
-
HealthResult
Creates an instance of aHealthResultrecord class.- Parameters:
status- the value for thestatusrecord componentstatusCode- the value for thestatusCoderecord componentuptime- the value for theuptimerecord component
-
-
Method Details
-
toString
Names the members; values that may be secret (keys, plaintexts, passwords, signatures) are redacted. -
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
statusCode
public int statusCode()Returns the value of thestatusCoderecord component.- Returns:
- the value of the
statusCoderecord component
-
uptime
public double uptime()Returns the value of theuptimerecord component.- Returns:
- the value of the
uptimerecord component
-