Interface AvailabilityStateHealthIndicator.StatusMappings<S extends AvailabilityState>

Type Parameters:
S - the availability state type
Enclosing class:
AvailabilityStateHealthIndicator

public static interface AvailabilityStateHealthIndicator.StatusMappings<S extends AvailabilityState>
Callback used to add status mappings.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    add(S availabilityState, Status status)
    Add a new status mapping .
    default void
    Add the status that should be used if no explicit mapping is defined.
  • Method Details

    • addDefaultStatus

      default void addDefaultStatus(Status status)
      Add the status that should be used if no explicit mapping is defined.
      Parameters:
      status - the default status
    • add

      void add(S availabilityState, Status status)
      Add a new status mapping .
      Parameters:
      availabilityState - the availability state
      status - the mapped status