Class HealthResult.Builder

  • Enclosing interface:
    HealthResult

    public static class HealthResult.Builder
    extends java.lang.Object
    Helper class to build instances.
    • Method Detail

      • status

        public HealthResult.Builder status​(io.micronaut.health.HealthStatus status)
        Assigns the status to the builder.
        Parameters:
        status - The status, null allowed
        Returns:
        The builder
      • exception

        public HealthResult.Builder exception​(@NotNull
                                              @NotNull java.lang.Throwable ex)
        Builds the details based off an exception.
        Parameters:
        ex - The exception that occurred
        Returns:
        The builder
      • details

        public HealthResult.Builder details​(java.lang.Object details)
        Sets the details of the result.
        Parameters:
        details - The details, null allowed
        Returns:
        The builder