Interface HealthCheckExecutionResult
Interface for health check executions via the
HealthCheckExecutor
.-
Method Summary
Modifier and TypeMethodDescriptionlong
Get the date, the health check finished or if the execution timed out, the execution was aborted.Get the meta data about the health check serviceGet the result of the health check run.boolean
Returns true if the execution has timed out.
-
Method Details
-
getHealthCheckResult
Result getHealthCheckResult()Get the result of the health check run.- Returns:
- the plain result
Result
-
getElapsedTimeInMs
long getElapsedTimeInMs()- Returns:
- The elapsed time in ms
-
getFinishedAt
Date getFinishedAt()Get the date, the health check finished or if the execution timed out, the execution was aborted.- Returns:
- The finished date of the execution.
-
hasTimedOut
boolean hasTimedOut()Returns true if the execution has timed out. In this case the result does not reflect the real result of the underlying check, but a result indicating the timeout.- Returns:
true
if execution timed out.
-
getHealthCheckMetadata
HealthCheckMetadata getHealthCheckMetadata()Get the meta data about the health check service- Returns:
- The
HealthCheckMetadata
the result was created for.
-