Class HealthReport<S,C extends SecurityContext>

java.lang.Object
com.nimbusds.jose.util.health.HealthReport<S,C>
All Implemented Interfaces:
Event<S,C>

@Immutable public class HealthReport<S,C extends SecurityContext> extends Object implements Event<S,C>
Health report.
Version:
2022-08-29
Author:
Vladimir Dzhuvinov
  • Constructor Details

    • HealthReport

      public HealthReport(S source, HealthStatus status, long timestamp, C context)
      Creates a new health report.
      Parameters:
      source - The event source.
      status - The health status. Must not be null.
      timestamp - The timestamp, in milliseconds since the Unix epoch.
      context - The optional context, null if not required.
    • HealthReport

      public HealthReport(S source, HealthStatus status, Exception exception, long timestamp, C context)
      Creates a new health report.
      Parameters:
      source - The event source.
      status - The health status. Must not be null.
      exception - The exception in case of a HealthStatus.NOT_HEALTHY, null if not specified.
      timestamp - The timestamp, in milliseconds since the Unix epoch.
      context - The optional context, null if not required.
  • Method Details