Package co.cryptoservice.sdk
Record Class LiveResult
java.lang.Object
java.lang.Record
co.cryptoservice.sdk.LiveResult
- Record Components:
status- the statusuptime- process uptime in whole seconds
What
GET /live answers: liveness probe.-
Constructor Summary
ConstructorsConstructorDescriptionLiveResult(String status, int uptime) Creates an instance of aLiveResultrecord 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.toString()Names the members; values that may be secret (keys, plaintexts, passwords, signatures) are redacted.intuptime()Returns the value of theuptimerecord component.
-
Constructor Details
-
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
-
uptime
public int uptime()Returns the value of theuptimerecord component.- Returns:
- the value of the
uptimerecord component
-